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