public function getRelation($relationId) { if (isset($this->relations[$relationId])) { return $this->relations[$relationId]; } }