diff --git a/src/Oro/Bundle/SEOBundle/Migrations/Schema/OroSEOBundleInstaller.php b/src/Oro/Bundle/SEOBundle/Migrations/Schema/OroSEOBundleInstaller.php index edf5046a504..887f23bb2ff 100644 --- a/src/Oro/Bundle/SEOBundle/Migrations/Schema/OroSEOBundleInstaller.php +++ b/src/Oro/Bundle/SEOBundle/Migrations/Schema/OroSEOBundleInstaller.php @@ -82,8 +82,9 @@ private function addMetaInformation(Schema $schema, $ownerTable) */ private function addMetaInformationField(Schema $schema, $ownerTable, $relationName, $isString = false) { - $targetTable = $schema->getTable($ownerTable); - + $ownerTable = $schema->getTable($ownerTable); + $targetTable = $schema->getTable(self::FALLBACK_LOCALE_VALUE_TABLE_NAME); + // Column names are used to show a title of target entity $targetTitleColumnNames = $targetTable->getPrimaryKeyColumns(); // Column names are used to show detailed info about target entity @@ -93,9 +94,9 @@ private function addMetaInformationField(Schema $schema, $ownerTable, $relationN $this->extendExtension->addManyToManyRelation( $schema, - $targetTable, + $ownerTable, $relationName, - self::FALLBACK_LOCALE_VALUE_TABLE_NAME, + $targetTable, $targetTitleColumnNames, $targetDetailedColumnNames, $targetGridColumnNames,