Skip to content

Commit

Permalink
Remove unused $pkColumns when gathering columns (#11560)
Browse files Browse the repository at this point in the history
  • Loading branch information
smoothie authored Aug 1, 2024
1 parent 96546ca commit 56cd688
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Tools/SchemaTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

Expand Down

0 comments on commit 56cd688

Please sign in to comment.