/** * @inheritdoc */ public function afterSave($insert, $changedAttributes) { parent::afterSave($insert, $changedAttributes); if ($insert) { if ($this->profile !== null) { $this->profile->save(false); } if ($this->module->requireEmailConfirmation === true) { $this->send(); } } }
/** * @inheritdoc */ public function afterSave($insert, $changedAttributes) { parent::afterSave($insert, $changedAttributes); if ($this->profile !== null) { $this->profile->save(false); } }