public function query($query, array $params = [])
    {
        $this->queryString = $query;
        $this->queryParams = $params;

        return $this;
    }
public function query($query, array $params = [])
    {
        $this->queryString = $query;
        $this->queryParams = $params;

        return $this;
    }
public function query ( $ query , array $ params = [ ] ) { $ this -> queryString = $ query ; $ this -> queryParams = $ params ; return $ this ; }
Sets custom query to be executed instead of one based on entity structure

@param string $query
@param array  $params

@return $this
Sets custom query to be executed instead of one based on entity structure