public function getRelation($contentType = null) { if (!$this->relation instanceof Collection\Relations) { $this->relation = new Collection\Relations(); } if ($contentType !== null) { return $this->relation[$contentType]; } return $this->relation; }