Manager/GenericDocumentManager.php
public function getDocuments(array $filters = [], $primes = [], $query = null)
    {
        $query = $this->getDefault('query', $query);
        $page = $this->getDefault('page');
        $itemsPerPage = $this->getDefault('itemsPerPage');
        $sortBy = $this->getDefault('sortBy');
        $sortDir = $this->getDefault('sortDir');

        $qb = $this->dm->createQueryBuilder($this->document);
        $qb = $this->addFilters($qb, $filters);
        $qb = $this->addQuery($qb, $this->queryFields, $query);

        foreach ($primes as $field) {
            $qb->field($field)->prime(true);
        }

        if ($sortBy) {
            $qb = $this->addSort($qb, $sortBy, $sortDir);
        }

        return $this->paginator->paginate($qb, $page, $itemsPerPage);
    }
public function getDocuments(array $filters = [], $primes = [], $query = null)
    {
        $query = $this->getDefault('query', $query);
        $page = $this->getDefault('page');
        $itemsPerPage = $this->getDefault('itemsPerPage');
        $sortBy = $this->getDefault('sortBy');
        $sortDir = $this->getDefault('sortDir');

        $qb = $this->dm->createQueryBuilder($this->document);
        $qb = $this->addFilters($qb, $filters);
        $qb = $this->addQuery($qb, $this->queryFields, $query);

        foreach ($primes as $field) {
            $qb->field($field)->prime(true);
        }

        if ($sortBy) {
            $qb = $this->addSort($qb, $sortBy, $sortDir);
        }

        return $this->paginator->paginate($qb, $page, $itemsPerPage);
    }
Get a list documents

@param array $filters

List or conditional selectors http://bit.ly/1efirww

@example filters

[
[
'field' => 'id',
'selector' => 'equals',
'value' => 12
],
…
]

@return MongoCursor