Top "Symfony-2.1" questions

This is the Symfony 2.1.x specific tag.

Set default value on Datetime field in symfony2 form

I have a form containing several fields. One of them is a Datetime field. How to define a default value …

php symfony symfony-2.1
Symfony 2: How do I check if a user is not logged in inside a template?

In Symfony 2 templates (using Twig), how can I effectively check whether a user is not logged in? I don't want …

symfony authentication twig symfony-2.1
Too much data with var_dump in symfony2 doctrine2

I have around 40 entities and many bidirectional relationships. Whenever i use var_dump($user) or any entity my browser gets …

php debugging doctrine-orm symfony-2.1
How to get list of all routes of a controller in Symfony2?

I have a controller which implements all routes/URL(s). I had the idea to offer a generic index over …

symfony indexing controller routes symfony-2.1
Troubleshooting "require_once(../bootstrap.php.cache): failed to open stream: No such file or directory"

I am trying to redeploy a Symfony 2.1x project I have been working on and app_dev.php is failing …

symfony-2.1
How do I force doctrine to reload the data from the database?

I'm using doctrine/mongodb 1.0.0-BETA1 in a symfony2.1 install. So i'm trying to force my repository to call data from …

symfony-2.1 doctrine-odm
Doctrine query building select MAX

I would like to select everything + MAX value and receive only rows having max values. $query = $this->createQueryBuilder('s'); $…

symfony doctrine-orm doctrine symfony-2.1
How can i simulate a 404 error with Symfony2?

so i'm looking for a way to simulate an 404 error, i tried this : throw $this->createNotFoundException(); and this return …

symfony symfony-2.1
Symfony 2 - How to delete a bundle?

So my question is how to delete bundle I created? You create bundles with this console command: php app/console …

php symfony symfony-2.1
Deep clone Doctrine entity with related entities

I have created an entity A with OneToMany relation to B, which have relation OneToMany to C. I have to …

doctrine-orm symfony-2.1