public function __get($property) { switch ($property) { case 'contentTypeGroups': return $this->getContentTypeGroups(); } return parent::__get($property); }