Doctrine\ORM\UnitOfWork::addToIdentityMap
INTERNAL: Registers an entity in the identity map.
Note that entities in a hierarchy are registered with the class name of the root entity.
Signature
Parameters
$entity
— object- The entity to register.
Returns
- boolean
- TRUE if the registration was successful, FALSE if the identity of
the entity in question is already managed.