<?php
namespace Bidcoz\Bundle\CoreBundle\Entity;
use Doctrine\ORM\EntityRepository;
class ConfigRepository extends EntityRepository
{
public function findActiveConfig()
{
return $this->createQueryBuilder('c')
->where('c.active = true')
->getQuery()
->getOneOrNullResult();
}
}