Skip to content
Snippets Groups Projects
Commit 88a1142c authored by Simon Leipold's avatar Simon Leipold
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1074251][[Schlüsselwort-Kategorie]...

[Projekt: Entwicklung - Neon][TicketNr.: 1074251][[Schlüsselwort-Kategorie] Schlüsselwort-Kategorie löschen bringt Fehler, Schlüsselwort-Kategorie wird nicht gelöscht]
parent bd631287
No related branches found
No related tags found
No related merge requests found
......@@ -5,11 +5,11 @@ import("Sql_lib");
var categoryId = vars.get("$local.uid");
newWhere("AB_KEYWORD_ATTRIBUTERELATION.AB_KEYWORD_ATTRIBUTE_ID", newSelect("AB_KEYWORD_ATTRIBUTE.AB_KEYWORD_ATTRIBUTEID")
.from("AB_KEYWORD_ATTRIBUTE")
.where("AB_KEYWORD_ATTRIBUTE.AB_KEYWORD_CATEGORY_ID", categoryId)
, SqlBuilder.IN()).deleteData();
newWhere("AB_KEYWORD_ATTRIBUTE.AB_KEYWORD_CATEGORY_ID", categoryId).deleteData();
newWhere("AB_KEYWORD_ENTRY.AB_KEYWORD_CATEGORY_ID", categoryId).deleteData();
.from("AB_KEYWORD_ATTRIBUTE")
.where("AB_KEYWORD_ATTRIBUTE.AB_KEYWORD_CATEGORY_ID", categoryId)
, SqlBuilder.IN()).deleteData(true, "AB_KEYWORD_ATTRIBUTERELATION");
newWhere("AB_KEYWORD_ATTRIBUTE.AB_KEYWORD_CATEGORY_ID", categoryId).deleteData(true, "AB_KEYWORD_ATTRIBUTE");
newWhere("AB_KEYWORD_ENTRY.AB_KEYWORD_CATEGORY_ID", categoryId).deleteData(true, "AB_KEYWORD_ENTRY");
//dependecies are removed so the cache needs to be updated
entities.invalidateCache("KeywordEntry_entity", "db");
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment