Skip to content

Commit 56cd688

Browse files
authored
Remove unused $pkColumns when gathering columns (#11560)
1 parent 96546ca commit 56cd688

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Tools/SchemaTool.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -421,18 +421,12 @@ private function addDiscriminatorColumnDefinition(ClassMetadata $class, Table $t
421421
*/
422422
private function gatherColumns(ClassMetadata $class, Table $table): void
423423
{
424-
$pkColumns = [];
425-
426424
foreach ($class->fieldMappings as $mapping) {
427425
if ($class->isInheritanceTypeSingleTable() && isset($mapping->inherited)) {
428426
continue;
429427
}
430428

431429
$this->gatherColumn($class, $mapping, $table);
432-
433-
if ($class->isIdentifier($mapping->fieldName)) {
434-
$pkColumns[] = $this->quoteStrategy->getColumnName($mapping->fieldName, $class, $this->platform);
435-
}
436430
}
437431
}
438432

0 commit comments

Comments
 (0)