public function getSafeAttributeNames() { if (!$this->eavEnable) { return parent::getSafeAttributeNames(); } return array_merge($this->getSafeEavAttributeNames(), parent::getSafeAttributeNames()); }