public function setRelation($relation, $value) { $this->relations[$relation] = $value; return $this; }