public function getRow(QueryBuilder $qb, array $params = [], $inDeleted = false)
    {
        if ($this->softDelete && !$inDeleted) {
            $qb->andWhere('t.'.$this->softDeleteName.' IS NULL');
        }

        return $this->db->fetchAssoc($qb->getSQL(), $params);
    }
public function getRow(QueryBuilder $qb, array $params = [], $inDeleted = false)
    {
        if ($this->softDelete && !$inDeleted) {
            $qb->andWhere('t.'.$this->softDeleteName.' IS NULL');
        }

        return $this->db->fetchAssoc($qb->getSQL(), $params);
    }
public function getRow ( QueryBuilder $ qb , array $ params = [ ] , $ inDeleted = false ) { if ( $ this -> softDelete && ! $ inDeleted ) { $ qb -> andWhere ( 't.' . $ this -> softDeleteName . ' IS NULL' ) ; } return $ this -> db -> fetchAssoc ( $ qb -> getSQL ( ) , $ params ) ; }
Recupera o primeiro registro que casa com uma consulta montada no QueryBuilder.

@param QueryBuilder $qb
@param array        $params
@param bool         $inDeleted

@return array
Recupera o primeiro registro que casa com uma consulta montada no QueryBuilder .