Skip to content
Code-Schnipsel Gruppen Projekte
Commit bbc72434 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

refactor: delete project bricks

Übergeordneter ef449930
No related branches found
No related tags found
1 Merge Request!9Dev
...@@ -168,17 +168,26 @@ public static function onSiteSave($Site) ...@@ -168,17 +168,26 @@ public static function onSiteSave($Site)
public static function onDeleteProject($project) public static function onDeleteProject($project)
{ {
// delete uid entries // delete uid entries
$uidTable = QUI\Bricks\Manager::getUIDTable(); try {
QUI::getDataBase()->delete(QUI\Bricks\Manager::getUIDTable(), [
'project' => $project
]);
} catch (QUI\Exception $Exception) {
QUI\System\Log::addError($Exception->getMessage());
}
// delete project bricks
try { try {
QUI::getDataBase()->delete($uidTable, [ QUI::getDataBase()->delete(QUI\Bricks\Manager::getTable(), [
'project' => $project 'project' => $project
]); ]);
} catch (QUI\Exception $Exception) { } catch (QUI\Exception $Exception) {
QUI\System\Log::addError($Exception->getMessage()); QUI\System\Log::addError($Exception->getMessage());
} }
// delete brocks project tables
// delete bricks project tables
// Mainproject_de_bricksCache // Mainproject_de_bricksCache
$Table = QUI::getDataBase()->table(); $Table = QUI::getDataBase()->table();
$tables = $Table->getTables(); $tables = $Table->getTables();
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren