This commit is contained in:
2021-01-19 20:21:44 +08:00
parent f455c439de
commit 136f3693f9
+9 -8
View File
@@ -122,20 +122,21 @@ class ' . $managerName . ' extends ActiveRecord
}
if ($property->hasType()) {
$type = $property->getType() . ' $' . $key . ' = ' . $val . ';' . "\n";
} else {
$type = ' $' . $key . ' = ' . $val . ';' . "\n";
}
if ($property->isStatic()) {
$html .= '
' . $debug . ' static $' . $key . ' = ' . $val . ';' . "\n";
' . $debug . ' static ' . $type;
} else {
if ($key == 'primary') {
continue;
}
if ($property->hasType()) {
$html .= '
' . $debug . ' ' . $property->getType() . ' $' . $key . ' = ' . $val . ';' . "\n";
} else {
$html .= '
' . $debug . ' $' . $key . ' = ' . $val . ';' . "\n";
}
$html .= '
' . $debug . ' ' . $type;
}
}