66 public static function deleteBySubscription($workflowId, $handler, $eventModule, $eventType, $entityId =
null)
68 $connection = Main\Application::getConnection();
69 $sqlHelper = $connection->getSqlHelper();
71 $table = $sqlHelper->forSql(static::getTableName());
72 $workflowId = $sqlHelper->forSql($workflowId);
73 $handler = $sqlHelper->forSql($handler);
74 $eventModule = $sqlHelper->forSql($eventModule);
75 $eventType = $sqlHelper->forSql($eventType);
76 $entityId = $entityId !==
null ? $sqlHelper->forSql($entityId) :
null;
78 $connection->queryExecute(
"DELETE
81 WORKFLOW_ID = '{$workflowId}'
82 AND HANDLER = '{$handler}'
83 AND EVENT_MODULE = '{$eventModule}'
84 AND EVENT_TYPE = '{$eventType}'"
85 .($entityId !==
null ?
" AND ENTITY_ID = '{$entityId}'" :
'')
91 $connection = Main\Application::getConnection();
92 $sqlHelper = $connection->getSqlHelper();
94 $table = $sqlHelper->forSql(static::getTableName());
95 $workflowId = $sqlHelper->forSql($workflowId);
97 $connection->queryExecute(
"DELETE FROM {$table} WHERE WORKFLOW_ID = '{$workflowId}'");