Doctrine\ORM\UnitOfWork::merge
Merges the state of the given detached entity into this UnitOfWork.
Signature
Parameters
$entity
— object
Returns
- The managed copy of the entity.
Errors/Exceptions
-
OptimisticLockException
- If the entity uses optimistic locking through a version
Line | Task |
---|---|
1697+ | Require active transaction!? OptimisticLockException may result in undefined state!? |