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.

The target-entity "some entity" cannot be found

i am using ZF2 with doctrine i am getting this error. The target-entity Entity\User cannot be found in 'Subject\…

php doctrine zend-framework2
Doctrine: ON DUPLICATE KEY UPDATE

How can I write an INSERT doctrine query with option ON DUPLICATE KEY UPDATE?

mysql pdo doctrine on-duplicate-key
How to fetch class instead of array in Doctrine 2

I am able to fetch my data from database by using this structure: $user = $this->getDoctrine() ->getRepository(…

php doctrine doctrine-orm doctrine-query
Doctrine 2: how to clone all values from one object onto another except ID?

In $entity variable, there is an object of same type as $other_address, but with all field values filled in. …

doctrine doctrine-orm symfony
Doctrine: cascade="remove" vs orphanRemoval=true

What is the difference between the 2 options above? When is it preferable to choose each option?

symfony doctrine cascade cascading-deletes
implementing "update if exists" in Doctrine ORM

I am trying to INSERT OR UPDATE IF EXISTS in one transaction. in mysql, I would generally use DUPLICATE KEY ("…

php sql orm doctrine
Query builder ManyToMany relationship

I'm facing some troubles with query builder in many to many relationship. I have an entity Company which have subcompanies …

symfony doctrine many-to-many query-builder
Find current Doctrine database connection settings in symfony

I need to know the database name and database server name inside a symfony project. How can one access the …

symfony doctrine symfony1
pass array of conditions to doctrine expr()->orx() method

I need to construct DQL with a QueryBuilder like this [QUERY]... AND WHERE e.type = x OR e.type = Y …

php oop doctrine-orm doctrine dql
Symfony 2 Doctrine COUNT

I have in my table "Artiste" one column "valideAdmin" who takes value 1 or 0. I try to make a simple count …

php symfony doctrine dql