Loads an document by a list of field criteria.
public load ( array $criteria, object $document = null, array $hints = [], integer $lockMode ) : object | ||
$criteria | array | The criteria by which to load the document. |
$document | object | The document to load the data into. If not specified, a new document is created. |
$hints | array | Hints for document creation. |
$lockMode | integer | |
Результат | object | The loaded and managed document instance or NULL if the document can not be found. |