getDocuments() public method

Get documents by list of id
public getDocuments ( array $idList, callable $callable = null ) : array | null
$idList array list of ids
$callable callable cursor callable used to configure cursor
return array | null
コード例 #1
0
ファイル: CollectionTest.php プロジェクト: sokil/php-mongo
 public function testGetDocuments_UnexistedIdsSpecified()
 {
     // get documents when wrong id's
     $this->assertEquals(array(), $this->collection->getDocuments(array(new \MongoId(), new \MongoId(), new \MongoId())));
 }