public function init() { parent::init(); if ($this->getScenario() === self::SCENARIO_UPDATE) { $this->_setAttributesByGameModel(); } }