Le 28/04/2016 22:17, dunaeth a écrit :
Moreover, the doc of UoW->merge says :
/**
* Merges the state of the given detached entity into this UnitOfWork.
*
* @param object $entity
*
* @return object The managed copy of the entity.
*
* @throws OptimisticLockException If the entity uses optimistic locking
through a version
* attribute and the version check against the managed copy fails.
*
* @todo Require active transaction!? OptimisticLockException may result
in undefined state!?
*/
So it's something about bringing back a detached entity un UoW, but maybe is it
neither the place to do it (onFlush évent) nor enough to retrieve all the
changes
Read the phpdoc. It tells you that it returns a managed copy of the
entity. It never tells that this managed instance is the one received as
argument (it cannot do that, as the unit of work might already contain
an instance for this id)
--
Christophe | Stof
--
You received this message because you are subscribed to the Google Groups
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.