Doctrine\ORM\UnitOfWork::recomputeSingleEntityChangeSet
INTERNAL: Computes the changeset of an individual entity, independently of the computeChangeSets() routine that is used at the beginning of a UnitOfWork#commit().
The passed entity must be a managed entity. If the entity already has a change set because this method is invoked during a commit cycle then the change sets are added. whereby changes detected in this method prevail.
Signature
public function recomputeSingleEntityChangeSet(ClassMetadata
$class,
$entity )
Parameters
$class
— Doctrine\ORM\Mapping\ClassMetadata- The class descriptor of the entity.
$entity
— object- The entity for which to (re)calculate the change set.
Errors/Exceptions
-
ORMInvalidArgumentException
- If the passed entity is not MANAGED.