Doctrine\ORM\Proxy\ProxyFactory::isShortIdentifierGetter
Check if the method is a short identifier getter.
What does this mean? For proxy objects the identifier is already known, however accessing the getter for this identifier usually triggers the lazy loading, leading to a query that may not be necessary if only the ID is interesting for the userland code (for example in views that generate links to the entity, but do not display anything else).
Signature
private function isShortIdentifierGetter(ReflectionMethod
$method,
ClassMetadata
$class )
Parameters
$method
— object
$class
— Doctrine\ORM\Mapping\ClassMetadata
Returns
- bool