Beispiel #1
0
 protected function beforeDelete()
 {
     $this->seo->delete();
     category_product::model()->deleteAllByAttributes(array('product_ID' => $this->product_ID));
     if ($this->hasEventHandler('onBeforeDelete')) {
         $event = new CModelEvent($this);
         $this->onBeforeDelete($event);
         return $event->isValid;
     } else {
         return true;
     }
 }