From 8931927dd48ae8c0aca339d201e1d6772d17d8aa Mon Sep 17 00:00:00 2001 From: Tobias Feijten Date: Tue, 2 Apr 2024 22:03:16 +0200 Subject: [PATCH] Fix class param name in CreateSchemaSubscriber --- EventSubscriber/CreateSchemaSubscriber.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/EventSubscriber/CreateSchemaSubscriber.php b/EventSubscriber/CreateSchemaSubscriber.php index 48f16e5..7bab98e 100644 --- a/EventSubscriber/CreateSchemaSubscriber.php +++ b/EventSubscriber/CreateSchemaSubscriber.php @@ -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) { @@ -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); } }