Sokil\Mongo\Collection::getDocumentFromDocumentPool PHP Method

getDocumentFromDocumentPool() public method

Get document from identity map by it's id
public getDocumentFromDocumentPool ( string | integer | MongoId $id ) : Document
$id string | integer | MongoId
return Document
    public function getDocumentFromDocumentPool($id)
    {
        return $this->documentPool[(string) $id];
    }