public function __unset($key) { // unset attributes and relations parent::__unset($key); // delete meta $this->unsetMeta($key); }