Skip to content

Commit dd3501b

Browse files
committed
Fixing indexes on multi column with foreign key and quoted column
1 parent 3827166 commit dd3501b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utils/BeanDescriptor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ private function generateFindByDaoCodeForIndex(Index $index, string $beanNamespa
13491349
}
13501350
} elseif ($element instanceof ObjectBeanPropertyDescriptor) {
13511351
$foreignKey = $element->getForeignKey();
1352-
$columns = SafeFunctions::arrayCombine($foreignKey->getLocalColumns(), $foreignKey->getForeignColumns());
1352+
$columns = SafeFunctions::arrayCombine($foreignKey->getUnquotedLocalColumns(), $foreignKey->getUnquotedForeignColumns());
13531353
++$count;
13541354
$foreignTable = $this->schema->getTable($foreignKey->getForeignTableName());
13551355
foreach ($columns as $localColumn => $foreignColumn) {

0 commit comments

Comments
 (0)