public function loadAll(array $criteria = [], $limit = null)
    {
        $qb = $this->dm->createQueryBuilder($this->class->name)->addCriteria($criteria);

        return $qb->getQuery()->limit($limit)->execute();
    }