Doctrine\ORM\Mapping\ClassMetadataInfo::getSingleIdentifierFieldName
Gets the name of the single id field. Note that this only works on entity classes that have a single-field pk.
Signature
public function getSingleIdentifierFieldName()
Returns
- string
Errors/Exceptions
-
MappingException
- If the class has a composite primary key.