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
Beispiel #1
0
 public function testGetDocuments_UnexistedIdsSpecified()
 {
     // get documents when wrong id's
     $this->assertEquals(array(), $this->collection->getDocuments(array(new \MongoId(), new \MongoId(), new \MongoId())));
 }