From 6d69249aca67d9d7362e3a722c222542e2be14f6 Mon Sep 17 00:00:00 2001 From: Marc Eichenseher Date: Tue, 30 Jul 2024 13:57:49 +0200 Subject: [PATCH] Remove unused $pkColumns when gathering columns --- src/Tools/SchemaTool.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Tools/SchemaTool.php b/src/Tools/SchemaTool.php index 42b52df8c71..cff59aecdd8 100644 --- a/src/Tools/SchemaTool.php +++ b/src/Tools/SchemaTool.php @@ -421,18 +421,12 @@ private function addDiscriminatorColumnDefinition(ClassMetadata $class, Table $t */ private function gatherColumns(ClassMetadata $class, Table $table): void { - $pkColumns = []; - foreach ($class->fieldMappings as $mapping) { if ($class->isInheritanceTypeSingleTable() && isset($mapping->inherited)) { continue; } $this->gatherColumn($class, $mapping, $table); - - if ($class->isIdentifier($mapping->fieldName)) { - $pkColumns[] = $this->quoteStrategy->getColumnName($mapping->fieldName, $class, $this->platform); - } } }