public function clearRelation($contenttype) { if (!empty($this->relation[$contenttype])) { unset($this->relation[$contenttype]); } }