/** * 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(); }
/** * 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(); }