public function setQueryRelation($type, $which)
    {
        $this->prepareRelationFilter($type);
        $this->filters[$type]['relation'] = $which;
        return $this;
    }
public function setQueryRelation($type, $which)
    {
        $this->prepareRelationFilter($type);
        $this->filters[$type]['relation'] = $which;
        return $this;
    }
public function setQueryRelation ( $ type , $ which ) { $ this -> prepareRelationFilter ( $ type ) ; $ this -> filters [ $ type ] [ 'relation' ] = $ which ; return $ this ; }
Sets a new relationship query.
@param string $type
@param string $which
@return Query
Sets a new relationship query .