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.

Symfony 2: INNER JOIN on non related table with doctrine query builder

I'm trying to build a query with the doctrine query builder which joins a non related table like this: $query = $…

php mysql symfony doctrine query-builder
How do I use a complex criteria inside a doctrine 2 entity's repository?

Lets say I have a table that holds information about festivals. Each festival has a start and end date. I …

php sql doctrine criteria doctrine-orm
Symfony2 & Doctrine: Create custom SQL-Query

How can I create a custom SQL query in Symfony2 using Doctrine? Or without Doctrine, I don't care. Doesn't work …

php sql symfony doctrine
PHPUnit Mock Objects and Static Methods

I am looking for the best way to go about testing the following static method (specifically using a Doctrine Model): …

php unit-testing mocking doctrine phpunit
Is there a built-in way to get all of the changed/updated fields in a Doctrine 2 entity

Let's suppose I retrieve an entity $e and modify its state with setters: $e->setFoo('a'); $e->setBar(…

php symfony doctrine-orm doctrine
How to set a date in Doctrine 2?

I have a field named "birthday" in doctrine entity. I would like to create an object to add to database …

symfony doctrine doctrine-orm
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
Symfony error The class XXX was not found in the chain configured namespaces XXX

There are some other questions on this subject already, but none of them were really helpful. I am new to …

php symfony doctrine
Symfony2 Doctrine querybuilder where IN

I losted trilion hours google this but none of the solutions were good. I have this querybuilder: $qb2=$this->…

doctrine dql query-builder
Using Raw SQL with Doctrine

I have some extremely complex queries that I need to use to generate a report in my application. I'm using …

sql symfony1 doctrine