Finds a document matching the specified identifier. Optionally a lock mode and
expected version may be specified.
public find ( mixed $id, integer $lockMode = LockMode::NONE, integer $lockVersion = null ) : object | null | ||
$id | mixed | Identifier. |
$lockMode | integer | Optional. Lock mode; one of the LockMode constants. |
$lockVersion | integer | Optional. Expected version. |
return | object | null | The document, if found, otherwise null. |