public function findAdmins()
    {
        $qb = $this->createQueryBuilder('u');

        $qb->where($qb->expr()->eq('u.admin', $qb->expr()->literal(true)))
            ->andWhere($qb->expr()->isNull('u.templateOwner'))
            ->andWhere($qb->expr()->eq('u.deleted', $qb->expr()->literal(false)));

        return $qb->getQuery()->getResult();
    }
public function findAdmins()
    {
        $qb = $this->createQueryBuilder('u');

        $qb->where($qb->expr()->eq('u.admin', $qb->expr()->literal(true)))
            ->andWhere($qb->expr()->isNull('u.templateOwner'))
            ->andWhere($qb->expr()->eq('u.deleted', $qb->expr()->literal(false)));

        return $qb->getQuery()->getResult();
    }
public function findAdmins ( ) { $ qb = $ this -> createQueryBuilder ( 'u' ) ; $ qb -> where ( $ qb -> expr ( ) -> eq ( 'u.admin' , $ qb -> expr ( ) -> literal ( true ) ) ) -> andWhere ( $ qb -> expr ( ) -> isNull ( 'u.templateOwner' ) ) -> andWhere ( $ qb -> expr ( ) -> eq ( 'u.deleted' , $ qb -> expr ( ) -> literal ( false ) ) ) ; return $ qb -> getQuery ( ) -> getResult ( ) ; }
Finds admins.

@return User[]
Finds admins .