Top "Symfony-2.1" questions

This is the Symfony 2.1.x specific tag.

Symfony2: How to deploy in subdirectory (Apache)

What is the best way to deploy symfony2 application in a subdirectory or an alias ? Lets say that my application …

php symfony symfony-2.1 symfony-2.0
Symfony 2.1 - Uncaught PHP Exception Twig_Error_Runtime

I am getting this error when trying to open a route in Symfony 2.1 I realy have no idea where to …

php symfony twig symfony-2.1
Autoloading a class in Symfony 2.1

I'm porting a Symfony 1.2 project to Symfony 2.x. I'm currently running the latest 2.1.0-dev release. From my old project I …

symfony-2.1
Flash Message disappears on redirect in Symfony 2.1

I'm migrating from Symfony 2.0 to Symfony 2.1. I have the following simple code on my controller: public function createEntidadeAction() { $this->…

symfony symfony-2.1 flash-message
Unit testing custom validation constraint in Symfony 2.1 but without accessing the container?

How can i unit test ContainsItalianVatinValidator custom validator, but w*ithout accessing the container* and the validator service (and thus, …

symfony phpunit symfony-2.1
Sonata Admin Bundle not working with Many-to-Many entity relationships

i'm currently using Sonata Admin Bundle using Symfony 2.1.0-DEV and Doctrine 2.2.x and i'm having problems with Many-To-Many entities associations: …

php doctrine-orm symfony-sonata symfony-2.1
set role for users in edit form of sonata admin

I'm using Symfony 2.1 for a project. I use the FOSUserBundle for managing users & SonataAdminBundle for administration usage. I have …

symfony symfony-2.1 fosuserbundle sonata-admin user-roles
How would you add a file upload to a Symfony2 DataFixture?

I can't seem to wrap my head around how I would go about adding a file upload to a DataFixture. …

php symfony doctrine symfony-2.1
How can I add a violation to a collection?

My form looks like this: public function buildForm(FormBuilderInterface $builder, array $options) { $factory = $builder->getFormFactory(); $builder->add('name'); $…

symfony-forms symfony-2.1
Testing database insert using Symfony

Good day everyone, I have been looking into Test Driven Development a lot in the past few days and decided …

php doctrine symfony-2.1 functional-testing liipfunctionaltestbundle