Пример #1
0
 /**
  * @return bool
  */
 public function delete()
 {
     $iIdFeature = $this->id_feature;
     $return = parent::delete();
     /* Reinitializing position */
     $this->cleanPositions($iIdFeature);
     return $return;
 }
    public function delete()
    {
        /* Also delete related products */
        Db::getInstance()->execute('
			DELETE FROM `' . _DB_PREFIX_ . 'feature_product`
			WHERE `id_feature_value` = ' . (int) $this->id);
        $return = parent::delete();
        if ($return) {
            Hook::exec('actionFeatureValueDelete', array('id_feature_value' => $this->id));
        }
        /* Reinitializing position */
        $this->cleanPositions($this->id_feature);
        return $return;
    }