Top "Doctrine" questions

The Doctrine Project is a collection of open source libraries and tools for dealing with database abstraction and Object-Relational Mapping written in PHP.

Query with EXISTS for Doctrine Symfony2

How can I implement the following query with Query Builder? SELECT * FROM t WHERE t.status = 1 OR EXISTS(SELECT * FROM …

symfony doctrine query-builder
Symfony - How to access entity's repository

There are several ways that we can access the entity's repository in Symfony2 controllers or services which each has its …

symfony design-patterns doctrine-orm doctrine symfony-2.3
How can I load fixtures from functional test in Symfony 2

My DoctrineFixturesBundle is installed and I can load fixture trough the command-line but , how can I load fixtures from my …

symfony doctrine functional-testing fixture
How do I find out which version of Doctrine I am running?

Have been using it for a while with CodeIgniter and I can't remember if I installed v2 or just copied …

codeigniter doctrine doctrine-orm doctrine-1.2
How do you access Doctrine DBAL in a Symfony2 service class?

I'm learning Symfony2 (and OOP) and want to create a service that's available throughout my app. This service takes a …

symfony doctrine
Deleting record in many-to-many table

I'm following the security chapter of the Symfony 2 book. There's is an example with a table USERS and GROUPS. There …

doctrine symfony many-to-many dql
Doctrine - insert multiple rows with just one save()

How do I insert multiple rows into table calling save() method once in Doctrine?

php database insert doctrine save
Using `DATE()` in Doctrine Querybuilder

I need to get all rows where DATE(a.when) matches the string 2014-09-30. $builder = $this->em->…

date datetime doctrine-orm doctrine query-builder
Difference between ObjectManager and EntityManager in Symfony2?

What's the difference between Doctrine\Common\Persistence\ObjectManager and Doctrine\ORM\EntityManager when using it in a custom form type? …

symfony doctrine doctrine-orm symfony-forms
Doctrine: Multiple (whereIn OR whereIn) query?

I'm having trouble crafting a fairly simple query with Doctrine... I have two arrays ($countries, $cities) and I need to …

symfony1 doctrine where-clause dql