Skip to content

Commit

Permalink
Merge pull request #207 from WebFiori/dev
Browse files Browse the repository at this point in the history
Update TableClassWriter.php
  • Loading branch information
usernane authored Jan 16, 2024
2 parents 1541078 + a1cf6d6 commit c17e766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webfiori/framework/writers/TableClassWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ private function addFKOption(Column $colObj) {
$fks = $this->getTable()->getForeignKeys();

foreach ($fks as $fk) {
$fk instanceof FK;

$sourceCols = array_values($fk->getOwnerCols());

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

0 comments on commit c17e766

Please sign in to comment.