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.

Execute custom SQL in symfony

I'm trying to execute some custom SQL to retrieve some model objects in a Symfony application. I found a tutorial …

php symfony1 doctrine symfony-1.4
Doctrine2 (Doctrine 2.1) eager loading in Symfony2

Let's say I have two entities in my Symfony2 project : Category and Article (a category having many articles). In my …

symfony doctrine doctrine-orm lazy-loading
symfony2 doctrine select IFNULL

Ok i have this code: SELECT IFNULL(s2.id,s1.id) AS effectiveID, IFNULL(s2.status, s1.status) AS effectiveStatus, …

symfony doctrine query-builder ifnull
Doctrine 2 PrePersist doesn't fire

Within the same entity I have a PreUpdate and a PrePersist. The PreUpdate fires, but the PrePersist never does. I …

php doctrine doctrine-orm
Doctrine Class "..\.." has no association named "..."

I hope you can help me with this problem because I really cannot see what is wrong here. I have 2 …

orm doctrine relation
dql query error class is not defined

Trying to conver my sql queries into dql, seems im doing something wrong. I need basic joins, something like this. …

symfony doctrine dql
Doctrine 2 DQL - how to select inverse side of unidirectional many-to-many query?

I have two classes - Page and SiteVersion, which have a many to many relationship. Only SiteVersion is aware of …

php doctrine dql
Multiple findby in symfony doctrine

I need to know if there is a way to do something like this: $customerClient = $clientTable->findByCustomerNumber($this->…

symfony1 doctrine findby
Symfony2 Doctrine doctrine:generate:entities never works

I am relatively new to Symfony2 and so far love it - except for this problem that I keep coming …

symfony doctrine-orm doctrine entities
Symfony2 and Doctrine $em->persist VS $em->merge

Hi there I've got a quick question regarding Doctrine and the difference between merge() and persist() I have a NewsBuilder …

symfony merge doctrine persist