src/Sulu/Component/Rest/Listing/ListQueryBuilder.php
public function find($prefix = 'u')
    {
        $selectFromDQL = $this->getSelectFrom($prefix);
        $whereDQL = $this->getWhere($prefix);
        if (true != $this->countQuery) {
            $orderDQL = $this->getOrderBy($prefix);
        } else {
            $orderDQL = '';
        }
        $dql = sprintf('%s %s %s', $selectFromDQL, $whereDQL, $orderDQL);

        return $dql;
    }
public function find($prefix = 'u')
    {
        $selectFromDQL = $this->getSelectFrom($prefix);
        $whereDQL = $this->getWhere($prefix);
        if (true != $this->countQuery) {
            $orderDQL = $this->getOrderBy($prefix);
        } else {
            $orderDQL = '';
        }
        $dql = sprintf('%s %s %s', $selectFromDQL, $whereDQL, $orderDQL);

        return $dql;
    }
public function find ( $ prefix = 'u' ) { $ selectFromDQL = $ this -> getSelectFrom ( $ prefix ) ; $ whereDQL = $ this -> getWhere ( $ prefix ) ; if ( true != $ this -> countQuery ) { $ orderDQL = $ this -> getOrderBy ( $ prefix ) ; } else { $ orderDQL = '' ; } $ dql = sprintf ( '%s %s %s' , $ selectFromDQL , $ whereDQL , $ orderDQL ) ; return $ dql ; }
Searches Entity by filter for fields, pagination and sorted by a column.

@param string $prefix Prefix for starting Table

@return string
Searches Entity by filter for fields pagination and sorted by a column .