Skip to content

Commit

Permalink
Fix class param name in CreateSchemaSubscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-93 authored and bobvandevijver committed Apr 2, 2024
1 parent 78e62ae commit 8931927
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EventSubscriber/CreateSchemaSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public function postGenerateSchemaTable(GenerateSchemaTableEventArgs $eventArgs)
}

// Add revision info
$revisionTable->addColumn($this->config->getRevisionFieldName(), 'integer');
$revisionTable->addColumn($this->config->getRevisionTypeFieldName(), 'string', array('length' => 4));
$revisionTable->addColumn($this->configuration->getRevisionFieldName(), 'integer');
$revisionTable->addColumn($this->configuration->getRevisionTypeFieldName(), 'string', array('length' => 4));

// Get each column (except id) and add it to the table
foreach ($entityTable->getColumns() AS $column) {
Expand All @@ -71,7 +71,7 @@ public function postGenerateSchemaTable(GenerateSchemaTableEventArgs $eventArgs)

// Get the primary keys
$pkColumns = $entityTable->getPrimaryKey()->getColumns();
$pkColumns[] = $this->config->getRevisionFieldName();
$pkColumns[] = $this->configuration->getRevisionFieldName();
$revisionTable->setPrimaryKey($pkColumns);
}
}
Expand Down

0 comments on commit 8931927

Please sign in to comment.