This commit is contained in:
2021-09-29 10:54:54 +08:00
parent a5477daf45
commit 3db192ce0b
+1 -1
View File
@@ -133,7 +133,7 @@ use Database\Model;
$html .= $this->createRules($this->fields);
if (is_object($class)) {
$html .= $this->getClassMethods($class, ['rules', 'tableName', 'attributes']);
$html .= $this->getClassMethods($class, ['rules', 'tableName', 'attributes', 'getDb']);
} else {
$other = $this->generate_json_function($html, $this->fields);
if (!empty($other)) {