Skip to content

Commit c17e766

Browse files
authored
Merge pull request #207 from WebFiori/dev
Update TableClassWriter.php
2 parents 1541078 + a1cf6d6 commit c17e766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webfiori/framework/writers/TableClassWriter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ private function addFKOption(Column $colObj) {
254254
$fks = $this->getTable()->getForeignKeys();
255255

256256
foreach ($fks as $fk) {
257-
$fk instanceof FK;
257+
258258
$sourceCols = array_values($fk->getOwnerCols());
259259

260260
if (count($sourceCols) == 1 && $sourceCols[0]->getNormalName() == $colObj->getNormalName()) {

0 commit comments

Comments
 (0)