/**
  * {@inheritDoc}
  */
 public function afterSave($insert, $changedAttributes)
 {
     parent::afterSave($insert, $changedAttributes);
     LanguageHelper::setData($this);
 }
Пример #2
0
 /**
  * @param boolean $insert            whether this method called while inserting a record.
  *                                   If false, it means the method is called while updating a record.
  * @param array   $changedAttributes The old values of attributes that had changed and were saved.
  *                                   You can use this parameter to take action based on the changes made for
  *                                   example send an email when the password had changed or implement audit trail
  *                                   that tracks all the changes.
  *                                   `$changedAttributes` gives you the old attribute values while the active
  *                                   record (`$this`) has already the new, updated values.
  *
  * @throws Exception|InvalidParamException
  */
 public function afterSave($insert, $changedAttributes)
 {
     LanguageHelper::setLanguages();
     parent::afterSave($insert, $changedAttributes);
 }