Skip to content

Commit

Permalink
兼容不支持注释的数据库
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuxin committed Aug 9, 2021
1 parent a3d4aa6 commit adc70e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ModelGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ protected function getPropertiesFromTable()
break;
}
}
$comment = $field['comment'];
$comment = $field['comment'] ?? null;
$this->addProperty($name, $type, true, true, $comment);
}
}
Expand Down

0 comments on commit adc70e2

Please sign in to comment.