This commit is contained in:
2021-01-19 20:21:44 +08:00
parent f455c439de
commit 136f3693f9
+8 -7
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()) { if ($property->isStatic()) {
$html .= ' $html .= '
' . $debug . ' static $' . $key . ' = ' . $val . ';' . "\n"; ' . $debug . ' static ' . $type;
} else { } else {
if ($key == 'primary') { if ($key == 'primary') {
continue; continue;
} }
if ($property->hasType()) {
$html .= ' $html .= '
' . $debug . ' ' . $property->getType() . ' $' . $key . ' = ' . $val . ';' . "\n"; ' . $debug . ' ' . $type;
} else {
$html .= '
' . $debug . ' $' . $key . ' = ' . $val . ';' . "\n";
}
} }
} }