Doctrine\ORM\UnitOfWork::getEntityIdentifier
Gets the identifier of an entity.
The returned value is always an array of identifier values. If the entity has a composite identifier then the identifier values are in the same order as the identifier field names as returned by ClassMetadata#getIdentifierFieldNames().
Signature
Parameters
$entity
— object
Returns
- array
- The identifier values.