public function loadAll(array $criteria = array()) { $criteria = $this->prepareQuery($criteria); $cursor = $this->collection->find($criteria); $mongoCursor = $cursor->getMongoCursor(); return new Cursor($mongoCursor, $this->uow, $this->class); }