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

        if (!empty($pageOpts)) {
            $rs = $this->paginate($qb, $pageOpts, $params);
        } else {
            $rs = $this->db->fetchAll($qb->getSQL(), $params);
        }

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

        if (!empty($pageOpts)) {
            $rs = $this->paginate($qb, $pageOpts, $params);
        } else {
            $rs = $this->db->fetchAll($qb->getSQL(), $params);
        }

        return $rs;
    }
public function getAll ( QueryBuilder $ qb , array $ params = [ ] , array $ pageOpts = [ ] , $ inDeleted = false ) { if ( $ this -> softDelete && ! $ inDeleted ) { $ qb -> andWhere ( 't.' . $ this -> softDeleteName . ' IS NULL' ) ; } if ( ! empty ( $ pageOpts ) ) { $ rs = $ this -> paginate ( $ qb , $ pageOpts , $ params ) ; } else { $ rs = $ this -> db -> fetchAll ( $ qb -> getSQL ( ) , $ params ) ; } return $ rs ; }
Retorna todos os registros que casam com uma consulta montada num QueryBuilder.

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

@return array
Retorna todos os registros que casam com uma consulta montada num QueryBuilder .