public function removeRelation($name) { if (isset($this->relations[$name])) { unset($this->relations[$name]); } return $this->parentModel; }