Doctrine\ORM\UnitOfWork::doMerge
Executes a merge operation on an entity.
Signature
private function doMerge(
$entity,
[array&
$visited = null,
[
$prevManagedCopy = null,
[array
$assoc = null]]] )
Parameters
$entity
—
object
$visited
—
array
$prevManagedCopy
—
object
$assoc
—
array
Returns
- The managed copy of the entity.
Errors/Exceptions
-
OptimisticLockException
- If the entity uses optimistic locking through a version
-
ORMInvalidArgumentException
- If the entity instance is NEW.
-
EntityNotFoundException