Is it possible to persist an entity inside an event listener? I\'m trying to implement an audit trail feature:
In Doctrine 1.x, there was an $entity->isModified() method, which happened to be quite useful. Has anyone found a way to replicate this functionality in Doctrine 2.x?
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
Recently I integrated Doctrine 2 ORM into CodeIgniter 2. I configured Doctrine 2 as a library and autoloaded it in CodeIgniter. Within a page I instantiate doctrine entity manager in the following way
I need to provide a webservice which returns articles. I want to include the user relationship in that result to avoid my clients to call another method to load the user object.
im trying to use the doctrine pager but its errored: Fatal error: Class \'Doctrine_Pager\' not found code:
this is my query: public function getDetails($userid, $orderby, $sort){ $query = $this->_em->createQueryBuilder()
I\'m recently trying to drop Doctrine due to performance and problems with abstraction and move todatabase driven logic. I\'m using mostly PostgreSQL.
umm... silly question. I know that one can (and should) use APC cache driver with Doctrine ORM. But I was just wondering if I can also cache entity manager instance itself?
I have a relation that looks like this: Category <=== Host <===> User Basically User-Host is a many-to-many relation, and each Host have one Category (one-to-many).