From 0a1ef9403dbb33085cf549d91edab70e19248ca7 Mon Sep 17 00:00:00 2001 From: ctippler Date: Fri, 12 Jan 2024 09:21:14 +0100 Subject: [PATCH] Generated migrations do not work #196 --- src/Command/MigrationGeneratorCommand.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Command/MigrationGeneratorCommand.php b/src/Command/MigrationGeneratorCommand.php index b458c61..9a147dc 100644 --- a/src/Command/MigrationGeneratorCommand.php +++ b/src/Command/MigrationGeneratorCommand.php @@ -59,16 +59,18 @@ public function getDescription(): string public function up(Schema $schema): void { $db = \Pimcore\Db::get(); + + $configurationData = \Pimcore\Db\Helper::quoteDataIdentifiers($db,$this->configurationData); if(Configuration::getById($this->configurationData[\'id\'])) { $db->update( ElementsProcessManagerBundle::TABLE_NAME_CONFIGURATION, - $this->configurationData, + $configurationData, [\'id\' => $this->configurationData[\'id\']] ); }else{ $db->insert( ElementsProcessManagerBundle::TABLE_NAME_CONFIGURATION, - $this->configurationData + $configurationData ); } }