Example #1
0
 /**
  * @see ObjectModel::delete()
  */
 public function delete()
 {
     if (JeproshopTools::isUnsignedInt($this->customer_id)) {
         JeproshopCustomerModelCustomer::resetAddressCache($this->customer_id);
     }
     if (!$this->isUsed()) {
         return parent::delete();
     } else {
         $this->deleted = true;
         return $this->update();
     }
 }