find()
find(mixed $id, integer $lockMode = \Doctrine\DBAL\LockMode::NONE, integer|null $lockVersion = null) : object|null
Finds an entity by its primary key / identifier.
Parameters
mixed | $id | The identifier. |
integer | $lockMode | The lock mode. |
integer|null | $lockVersion | The lock version. |
Returns
object|null —The entity instance or NULL if the entity can not be found.