public function find($id, $lockMode = \Doctrine\ODM\MongoDB\LockMode::NONE, $lockVersion = null, array $options = [])
    {
        return $this->assertEntity(parent::find($id, $lockMode, $lockVersion), $options);
    }
public function find($id, $lockMode = \Doctrine\ODM\MongoDB\LockMode::NONE, $lockVersion = null, array $options = [])
    {
        return $this->assertEntity(parent::find($id, $lockMode, $lockVersion), $options);
    }
public function find ( $ id , $ lockMode = \ Doctrine \ ODM \ MongoDB \ LockMode :: NONE , $ lockVersion = null , array $ options = [ ] ) { return $ this -> assertEntity ( parent :: find ( $ id , $ lockMode , $ lockVersion ) , $ options ) ; }
Finds a document by its identifier

@param string|object $id The identifier
@param int $lockMode
@param int $lockVersion
@param array $options
@throws Mapping\MappingException
@throws LockException
@throws UserDeactivatedException
@return null | UserInterface
Finds a document by its identifier