public function setQuery(Query $query)
    {
        $this->query = $query;
        $this->clonedQuery = clone $query;

        return $this;
    }
public function setQuery(Query $query)
    {
        $this->query = $query;
        $this->clonedQuery = clone $query;

        return $this;
    }
public function setQuery ( Query $ query ) { $ this -> query = $ query ; $ this -> clonedQuery = clone $ query ; return $ this ; }
Set CakePHP query

@param Query $query CakePHP query

@return CakePHP
Set CakePHP query