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();