public function getAttributes($names = null) { $ret = parent::getAttributes($names); foreach ($this->i18n() as $field) { $ret[$field] = $this->{$field}; } return $ret; //return $this->_attributes; }
public function getAttributes($names = null) { return array_merge($this->player->getAttributes($names), parent::getAttributes($names)); }