I\'m trying to get some simple CRUD done with doctrine 2 but when it\'s time to update a record with one property set as an array collection I don\'t seem to get removeElement() to work as it\'s suppo
How to do a native sql query in Doctrine 2, executing an update statement? The createNativeQ开发者_JAVA技巧uery method on EntityManager, requires a second parameter (ResultSetMapping) to be able to ma
I think the title asks it all. Very simple, I have an entity: class User { private $id; private $name; private $username;
I have entity \"Creative\" and Entity \"Question\"... When I had a ManyToMany relation from Creative to Question, I could easily do $builder->add(\'questions\'), and it would grab all the questions an
Given that I Fetch all my entities up front // Get All Users $qb = $em->createQueryBuilder(); $qb->select(\"u\")-&开发者_开发技巧gt;from->(\"User u\");
I have recently started to learn using of Doctrine 2.0 framework for PHP. Now I have already managed to utilize some Doctrine things (using MySQL), insert some data using defined XML model, but now I
I want to fetch 2 rows from my datab开发者_开发百科ase randomly with doctrine2, and I can\'t manage to do it. I figured out that there is no possibility to do it easily with RAND(), but then which is
I have following table (type, id, title). When new object is created and type=1 id should be 1, next object with type=1 id=2... But 开发者_如何学Gowhen I create object with type=2 id should be 1.
I have an issue with single table inheritance and I\'m not sure if I\'m interpreting the documentation correctly.
I have an object that has an instance of Doctrine\\ODM\\MongoDB\\Query\\Builder . When I serialize my object, unserialize it, and then try to use the Builder, I get the following error: