Symfony\Bridge\Doctrine\Form\ChoiceList\EntityChoiceList::getIdentifierValues
Returns the values of the identifier fields of an entity.
Doctrine must know about this entity, that is, the entity must already be persisted or added to the identity map before. Otherwise an exception is thrown.
Signature
Parameters
$entity
— object- The entity for which to get the identifier
Returns
- array
- The identifier values
Errors/Exceptions
-
RuntimeException
- If the entity does not exist in Doctrine's identity map