public function findByKeys(array $keys)
    {
        $result = [];
        /** @var Cursor $list */
        $list = $this->collection->find(['_id' => ['$in' => $keys]]);

        foreach ($list as $document) {
            $result[] = $this->hydrateEntity($document);
        }

        return $result;
    }
public function findByKeys(array $keys)
    {
        $result = [];
        /** @var Cursor $list */
        $list = $this->collection->find(['_id' => ['$in' => $keys]]);

        foreach ($list as $document) {
            $result[] = $this->hydrateEntity($document);
        }

        return $result;
    }
public function findByKeys ( array $ keys ) { $ result = [ ] ; /** @var Cursor $list */ $ list = $ this -> collection -> find ( [ '_id' => [ '$in' => $ keys ] ] ) ; foreach ( $ list as $ document ) { $ result [ ] = $ this -> hydrateEntity ( $ document ) ; } return $ result ; }
Finds a list of items by keys

@param array $keys

@return array
Finds a list of items by keys