getClassMetadata($entityClass)); } public function findAllOfflineAndDelete() { return $this->createQueryBuilder('e') ->andWhere('e.status < = 0') ->orderBy('e.status', "DESC") ->getQuery() ->getResult(); } }