diff --git a/src/Mapper/Dbal/Conventions/Conventions.php b/src/Mapper/Dbal/Conventions/Conventions.php index ca3cc3d2..07c88fb4 100644 --- a/src/Mapper/Dbal/Conventions/Conventions.php +++ b/src/Mapper/Dbal/Conventions/Conventions.php @@ -264,12 +264,6 @@ public function getManyHasManyStorageName(IConventions $targetConventions): stri public function getManyHasManyStoragePrimaryKeys(IConventions $targetConventions): array { - $one = $this->getStoragePrimaryKey()[0]; - $two = $targetConventions->getStoragePrimaryKey()[0]; - if ($one !== $two) { - return [$one, $two]; - } - return $this->findManyHasManyPrimaryColumns( $this->getManyHasManyStorageName($targetConventions), $targetConventions->getStorageTable()