From 994896a5c723954cb4f2d4f465663ed4f763cb69 Mon Sep 17 00:00:00 2001 From: Ian Borla Date: Mon, 20 Nov 2023 13:32:24 +0800 Subject: [PATCH] Update FruitDecomulator.php --- api/src/Service/FruitDecomulator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Service/FruitDecomulator.php b/api/src/Service/FruitDecomulator.php index 909355b..23ef5cd 100644 --- a/api/src/Service/FruitDecomulator.php +++ b/api/src/Service/FruitDecomulator.php @@ -31,7 +31,7 @@ public function __invoke(): void $connection->executeStatement("SET foreign_key_checks = 0;"); $connection->executeStatement($platform->getTruncateTableSQL($table, true)); // @INFO: Put back the original setting - $connection->executeStatement("SET foreign_key_checks = 0;"); + $connection->executeStatement("SET foreign_key_checks = 1;"); // @INFO: Purge cache $cache = new FilesystemAdapter();