public find ( string $entityName, mixed $id, integer | null $lockMode = null, integer | null $lockVersion = null ) : object | null | ||
$entityName | string | The class name of the entity to find. |
$id | mixed | The identity of the entity to find. |
$lockMode | integer | null | One of the \Doctrine\DBAL\LockMode::* constants or NULL if no specific lock mode should be used during the search. |
$lockVersion | integer | null | The version of the entity to find when using optimistic locking. |
return | object | null | The entity instance or NULL if the entity can not be found. |