AppserverIo\Appserver\PersistenceContainer\Doctrine\DoctrineEntityManagerProxy::find PHP Метод

find() публичный Метод

Finds an Entity by its identifier.
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.
Результат object | null The entity instance or NULL if the entity can not be found.
    public function find($entityName, $id, $lockMode = null, $lockVersion = null)
    {
        return $this->__call('find', array($entityName, $id, $lockMode, $lockVersion));
    }