/**
  * Delete price set for the given entity and id
  *
  * @param string $entityTable
  * @param integer $entityId
  */
 public static function removeFrom($entityTable, $entityId)
 {
     $dao = new CRM_Price_DAO_SetEntity();
     $dao->entity_table = $entityTable;
     $dao->entity_id = $entityId;
     return $dao->delete();
 }
Exemple #2
0
 /**
  * Delete price set for the given entity and id
  *
  * @param string $entityTable
  * @param integer $entityId
  */
 public static function removeFrom($entityTable, $entityId)
 {
     require_once 'CRM/Price/DAO/SetEntity.php';
     $dao = new CRM_Price_DAO_SetEntity();
     $dao->entity_table = $entityTable;
     $dao->entity_id = $entityId;
     return $dao->delete();
 }