public function setQuery($query)
    {
        $this->cacheRows = null;
        $this->size = null;
        $this->paginator = new Paginator($query);

        return $this;
    }
public function setQuery($query)
    {
        $this->cacheRows = null;
        $this->size = null;
        $this->paginator = new Paginator($query);

        return $this;
    }
public function setQuery ( $ query ) { $ this -> cacheRows = null ; $ this -> size = null ; $ this -> paginator = new Paginator ( $ query ) ; return $ this ; }
Set query.

@param Query|QueryBuilder $query

@return DoctrineOrmDataSource
Set query .