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