Top "Doctrine-orm" questions

Doctrine ORM is a PHP ORM.

How to debug MySQL/Doctrine2 Queries?

I am using MySQL with Zend Framework & Doctrine 2. I think even if you don't use Doctrine 2, you will be …

php mysql zend-framework doctrine-orm
How to re-save the entity as another row in Doctrine 2

Let's say I have entity $e. Is there any generic way to store it as another row, which would have …

php doctrine doctrine-orm temporal-database
How can I add an INDEX with Doctrine 2 to a column without making it a primary key?

I want to add an index to a table column in my MySQL database. I am using Doctrine 2 to create …

mysql indexing doctrine-orm
Doctrine 2: Query result as associative array

In my Repository class I use the following code to query: $query = $this->getEntityManager()->createQuery(" SELECT s.…

php doctrine doctrine-orm dql
What do you use instead of ENUM in doctrine2?

What do you use instead of ENUM in Doctrine2? smallint? I thought of using varchar, or explicitly define char, but …

symfony doctrine-orm
How to merge two php Doctrine 2 ArrayCollection()

Is there any convenience method that allows me to concatenate two Doctrine ArrayCollection()? something like: $collection1 = new ArrayCollection(); $collection2 = new …

php symfony doctrine-orm arraycollection
Doctrine2 Insert and retrieve new insert ID

In Doctrine2 using some thing like: $user = array('username' => 'example', 'passsword' => 'changeme'); $conn->insert('users', $user); How …

php doctrine-orm
Get date as a string from datetime object in doctrine 2

In one of my entities, I have a protected property called insert_date which is a datetime. When I extract …

php datetime doctrine doctrine-orm
How to truncate a table using Doctrine 2?

I assume that I need to build a native query to truncate a table using Doctine2. $emptyRsm = new \Doctrine\ORM\…

php mysql doctrine-orm nativequery
Is there possible to use createQueryBuilder for insert/update? If not, what function should I use?

For now I succeded to create a function that retrieves data from the database using Doctrine's function createQueryBuilder. Does anybody …

symfony doctrine-orm insert-update createquery