Exemple #1
0
 public function afterDelete()
 {
     parent::afterDelete();
     yii::$app->redis->hdel($this->key, $this->option_key);
 }
Exemple #2
0
 public function afterSave($insert, $changedAttributes)
 {
     $this->checkModel->status = 1;
     $this->checkModel->save();
     parent::afterSave($insert, $changedAttributes);
     // TODO: Change the autogenerated stub
 }
 public function afterDelete()
 {
     self::cache(1);
     parent::afterDelete();
     // TODO: Change the autogenerated stub
 }