public function afterDelete() { if (Yii::app()->hasModule('delivery')) { $this->clearDeliveryMethods(); } parent::afterDelete(); }
protected function afterDelete() { Yii::app()->getCache()->clear($this->menu->code); return parent::afterDelete(); }
public function afterDelete() { Comment::model()->deleteAll('model = :model AND model_id = :model_id', array(':model' => 'Post', ':model_id' => $this->id)); return parent::afterDelete(); }
/** * */ public function afterDelete() { foreach ($this->products as $product) { $product->delete(); } parent::afterDelete(); }
/** * */ public function afterDelete() { Yii::app()->eventManager->fire(NewsEvents::NEWS_AFTER_DELETE, new Event($this)); parent::afterDelete(); }
/** * */ public function afterDelete() { Comment::model()->deleteAll('model = :model AND model_id = :model_id', [':model' => 'Post', ':model_id' => $this->id]); parent::afterDelete(); }
public function afterDelete() { $this->clearPaymentMethods(); parent::afterDelete(); }
public function afterDelete() { @unlink(Yii::app()->getModule('image')->getUploadPath() . '/' . $this->file); return parent::afterDelete(); }
/** * */ public function afterDelete() { $this->clearDeliveryMethods(); parent::afterDelete(); }
/** * Метод перед удалением: * * @return void */ public function afterDelete() { parent::afterDelete(); $this->profile->delete(); $this->address->delete(); }