Skip to content

Commit adc70e2

Browse files
committed
兼容不支持注释的数据库
1 parent a3d4aa6 commit adc70e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ModelGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ protected function getPropertiesFromTable()
251251
break;
252252
}
253253
}
254-
$comment = $field['comment'];
254+
$comment = $field['comment'] ?? null;
255255
$this->addProperty($name, $type, true, true, $comment);
256256
}
257257
}

0 commit comments

Comments
 (0)