Skip to content

Commit ec64197

Browse files
committed
One To One inverse index: Use UnquotedColumns
1 parent 301515c commit ec64197

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Utils/DirectForeignKeyMethodDescriptor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ private function hasLocalUniqueIndex(): bool
180180
foreach ($this->getForeignKey()->getLocalTable()->getIndexes() as $index) {
181181
if (
182182
$index->isUnique()
183-
&& count($index->getColumns()) === count($this->getForeignKey()->getLocalColumns())
184-
&& !array_diff($index->getColumns(), $this->getForeignKey()->getLocalColumns()) // Check for permuted columns too
183+
&& count($index->getUnquotedColumns()) === count($this->getForeignKey()->getUnquotedLocalColumns())
184+
&& !array_diff($index->getUnquotedColumns(), $this->getForeignKey()->getUnquotedLocalColumns()) // Check for permuted columns too
185185
) {
186186
return true;
187187
}

0 commit comments

Comments
 (0)