public function findOneBy($filters, $inDeleted = false)
    {
        $qb = $this->db->createQueryBuilder();

        $qb->select($this->getSelect($this->profile))
            ->from($this->table, 't')
            ->where('1 = 1');

        $this->addJoins($qb, $this->getJoins($this->profile));
        $params = $this->addFilters($qb, $this->getFilters($this->profile));
        $params = array_merge($params, $this->addFilters($qb, $filters));

        return $this->getRow($qb, $params, $inDeleted);
    }
public function findOneBy($filters, $inDeleted = false)
    {
        $qb = $this->db->createQueryBuilder();

        $qb->select($this->getSelect($this->profile))
            ->from($this->table, 't')
            ->where('1 = 1');

        $this->addJoins($qb, $this->getJoins($this->profile));
        $params = $this->addFilters($qb, $this->getFilters($this->profile));
        $params = array_merge($params, $this->addFilters($qb, $filters));

        return $this->getRow($qb, $params, $inDeleted);
    }
public function findOneBy ( $ filters , $ inDeleted = false ) { $ qb = $ this -> db -> createQueryBuilder ( ) ; $ qb -> select ( $ this -> getSelect ( $ this -> profile ) ) -> from ( $ this -> table , 't' ) -> where ( '1 = 1' ) ; $ this -> addJoins ( $ qb , $ this -> getJoins ( $ this -> profile ) ) ; $ params = $ this -> addFilters ( $ qb , $ this -> getFilters ( $ this -> profile ) ) ; $ params = array_merge ( $ params , $ this -> addFilters ( $ qb , $ filters ) ) ; return $ this -> getRow ( $ qb , $ params , $ inDeleted ) ; }
Localiza o primeiro registro que casa com um conjunto de filtros.

@param array $filters
@param bool  $inDeleted

@return array
Localiza o primeiro registro que casa com um conjunto de filtros .