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.

How to get result information when updating mysql table with Doctrine ORM in symfony 1.4

I am developing with symfony 1.4 and using Doctrine ORM. After building schema and models i've got some classes for work …

php orm doctrine symfony-1.4 doctrine-1.2
Doctrine query : confusing addWhere, andWhere, orWhere

I have a query : $q->andWhere($q->getRootAlias().'.is_published = ?', 1); $q->andWhere($q->getRootAlias().…

sql doctrine doctrine-1.2
Retrieve all rows from table in doctrine

I have table with 100 000+ rows, and I want to select all of it in doctrine and to do some actions …

php symfony doctrine-orm doctrine adodb-php
Annotation @OrderBy

I'm trying to automatically order the results of a report by the ManyToMany annotation @OrderBy: /** * @ORM\ManyToMany(targetEntity="Artist", inversedBy="…

symfony doctrine-orm doctrine symfony-2.3
Symfony2: How to filter the options of an entity-choice form field by a certain attribute?

1.) The Situation (simplified) I have two entities: a Container-entity, which has exactly 1 Content-entity. The content_id is stored in the …

symfony doctrine-orm doctrine symfony-forms symfony-2.4
Use a DATE() function in a WHERE clause with DQL

I get a strange error when I execute this DQL query: SELECT u FROM User u LEFT JOIN u.schedule …

doctrine doctrine-orm dql
How to update a field in doctrine to set it null

I want to set null to a field in doctrine and here is the sentence $em = $this->getDoctrine()-&…

php symfony doctrine-orm doctrine query-builder
Symfony2 - Doctrine and FOSUserBundle - wrong annotations

I am new to Symfony2 in general. This issue relates to Doctrine and FOSUserBundle though. I have the following User.…

php symfony orm doctrine fosuserbundle
The annotation "@OneToMany" in property was never imported (Doctrine2)

I'm working with Doctrine 2 as an ORM for Slim 3 but I keep getting stuck in the object mapping section when …

php symfony doctrine-orm doctrine slim
Doctrine Query Builder Where Count of ManyToMany is greater than

Im using the Doctrine Query Builder, and have a very specific requirement that came through. I am using the ManyToMany …

symfony doctrine-orm doctrine many-to-many doctrine-query