src/Bidcoz/Bundle/CoreBundle/Entity/ConfigRepository.php line 9

Open in your IDE?
  1. <?php
  2. namespace Bidcoz\Bundle\CoreBundle\Entity;
  3. use Doctrine\ORM\EntityRepository;
  4. class ConfigRepository extends EntityRepository
  5. {
  6.     public function findActiveConfig()
  7.     {
  8.         return $this->createQueryBuilder('c')
  9.             ->where('c.active = true')
  10.             ->getQuery()
  11.             ->getOneOrNullResult();
  12.     }
  13. }