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.

Doctrine - How to print out the real sql, not just the prepared statement?

We're using Doctrine, a PHP ORM. I am creating a query like this: $q = Doctrine_Query::create()->select(…

php mysql orm doctrine doctrine-query
Execute raw SQL using Doctrine 2

I want to execute raw SQL using Doctrine 2 I need to truncate the database tables and initialize tables with default …

php sql doctrine
tar: Error is not recoverable: exiting now

when I untar doctrine -rw-r--r-- 1 root root 660252 2010-10-16 23:06 Doctrine-1.2.0.tgz I always get this error messages root@X100e:/…

linux doctrine tar
How do I delete an entity from symfony2

My first symfony2 project is a list of guests (invited in an event) stored in a database. I have created …

symfony doctrine
Doctrine 2: Update query with query builder

Hi I've got the following query but it doesn't seem to work. $q = $this->em->createQueryBuilder() ->…

php sql database doctrine
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
How to use andWhere and orWhere in Doctrine?

WHERE a = 1 AND (b = 1 Or b = 2) AND (c = 1 OR c = 2) How can i make this in Doctrine? $q->where("…

php sql doctrine
Doctrine2: Best way to handle many-to-many with extra columns in reference table

I'm wondering what's the best, the cleanest and the most simply way to work with many-to-many relations in Doctrine2. Let's …

php orm model doctrine doctrine-orm
Order by multiple columns with Doctrine

I need to order data by two columns (when the rows have different values for column number 1, order by it; …

php doctrine sql-order-by
Get the last insert id with doctrine 2?

How can I get the last insert id with doctrine 2 ORM? I didn't find this in the documentation of doctrine, …

php orm doctrine lastinsertid