Top "Doctrine-orm" questions

Doctrine ORM is a PHP ORM.

Symfony2: spl_object_hash() expects parameter 1 to be object, string given in Doctrine

I am trying to populate the database with the object User and Person by executing persist and flush. First of …

database symfony doctrine-orm entity
Doctrine 2: Find entity using entity relations

Say I have two entities in Doctrine2 that are related to each other, Models\User and Models\Comment. If I …

php orm doctrine-orm findby
Symfony2 QueryBuilder join ON and WITH difference

I'm new with Symfony2 and I built successfully my first join through QueryBuilder and Doctrine 2. Probably this is a stupid …

symfony doctrine-orm left-join query-builder
Symfony 2.0 getting service inside entity

Im seraching over and cannot find answer. I have database role model in my application. User can have a role …

php service symfony doctrine-orm entity
How to get a Collection in Doctrine2's query results

I am trying to execute a query using doctrine2 and need it to return a collection object. Simplified snippet: $players = $…

doctrine doctrine-orm
Symfony2 Doctrine2 trouble with optional one to one relation

I have a problem with Doctrine2 in Symfony2 and two relationed entities. There is a user-entity that can (not must) …

symfony orm doctrine-orm one-to-one
Get table name of entity class

Do you know how to get the table name from an Entity declaration in my controller class Entity Class <?…

symfony doctrine-orm
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
How do I view the parameters in a query?

In order to debug my code I would like to see the explicit sql query that is executed. I create …

mysql symfony doctrine-orm doctrine-query
How to get Doctrine to log queries in Symfony2

I'm pretty new to Symfony2, and I'm looking for a way to log SQL queries (including timings) to the same …

php symfony doctrine-orm monolog