Top "Doctrine-orm" questions

Doctrine ORM is a PHP ORM.

Default value in Doctrine

How do I set a default value in Doctrine 2?

php orm doctrine-orm
Count Rows in Doctrine QueryBuilder

I'm using Doctrine's QueryBuilder to build a query, and I want to get the total count of results from the …

symfony doctrine-orm
How to use WHERE IN with Doctrine 2

I have the following code which gives me the error: Message: Invalid parameter number: number of bound variables does not …

php doctrine-orm query-builder
How to order results with findBy() in Doctrine

I am using the findBy() method on a Doctrine repository: $entities = $repository->findBy(array('type'=> 'C12')); How …

php doctrine-orm
How to sort findAll Doctrine's method?

I've been reading Doctrine's documentation, but I haven't been able to find a way to sort findAll() Results. I'm using …

symfony doctrine-orm
On delete cascade with doctrine2

I'm trying to make a simple example in order to learn how to delete a row from a parent table …

php doctrine-orm symfony cascading-deletes
Doctrine query builder using inner join with conditions

I'd like to construct the following SQL using Doctrine's query builder: select c.* from customer c join phone p on …

sql symfony doctrine-orm
How to do left join in Doctrine?

This is my function where I'm trying to show the User history. For this I need to display the user's …

php doctrine-orm zend-framework2
How to select distinct query using symfony2 doctrine query builder?

I have this symfony code where it retrieves all the categories related to a blog section on my project: $category = $…

php doctrine-orm symfony query-builder
How to encode Doctrine entities to JSON in Symfony 2.0 AJAX application?

I'm developing game app and using Symfony 2.0. I have many AJAX requests to the backend. And more responses is converting …

ajax doctrine doctrine-orm symfony