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.

Iterate Doctrine Collection ordered by some field

I need something like this: $products = Products::getTable()->find(274); foreach ($products->Categories->orderBy('title') as $category) { …

php sorting collections doctrine doctrine-1.2
Zend Framework 2 + Doctrine 2

I would like to start developing with Zend Framework and I would like to use zf2. Since I use Doctrine 2, …

php zend-framework doctrine doctrine-orm zend-framework2
Symfony2: How to remove an element from a Doctrine ArrayCollection (many-to-many relation)?

I use the following code for my many-to-many relation in symfony2 (doctrine) Entity: /** * @ORM\ManyToMany(targetEntity="BizTV\ContainerManagementBundle\Entity\Container", …

php database symfony doctrine arraycollection
MYSQL incorrect DATETIME format

I have an app with Doctrine 1 and I generate update_datetime fields for objects via new Zend_Date->getIso(). …

php mysql zend-framework doctrine doctrine-1.2
No result was found for query although at least one row was expected

I have the following code: /** * Search similar category given a string * * @param $searchTerm search similar category */ public function findOneSimilarCategory($searchTerm) { $…

php symfony doctrine-orm doctrine
Doctrine 2 DQL - Select rows where a many-to-many field is empty?

I have two classes in this example - DeliveryMethod and Country. They have a many-to-many relationship with each other. What …

php doctrine dql
Doctrine 2 Inheritance Mapping with Association

NOTE : if what I want is not possible, a "not possible" answer will be accepted In the Doctrine 2 documentation about …

php inheritance orm doctrine doctrine-orm
Doctrine DBAL setParameter() with array value

I'm using doctrine DBAL and have some problem with SQL query as result of a queryBuilder. $builder = $this->getConnection()…

php mysql symfony doctrine dbal
Mapping Exception : Class does not exist Symfony2 Deployment

I have a working Project on localhost but when I deployed the project I received this error and I have …

symfony deployment doctrine mappingexception
Can I access discriminator field from php in doctrine2?

I have an entity which defines inheritance like this: * @DiscriminatorColumn(name="type", type="string") * @DiscriminatorMap({"text" = "TextAttribute", "boolean" = "BooleanAttribute", "numeric" = "…

php inheritance doctrine doctrine-orm