diff --git a/Gii/GiiModel.php b/Gii/GiiModel.php index a0c27da1..81b65ba3 100644 --- a/Gii/GiiModel.php +++ b/Gii/GiiModel.php @@ -120,14 +120,11 @@ class ' . $managerName . ' extends ActiveRecord } else { $debug = 'public'; } - - if ($property->hasType()) { - $type = $property->getType() . ' $' . $key . ' = ' . $val . ';' . "\n"; + $type = ' ' . $property->getType() . ' $' . $key . ' = ' . $val . ';' . "\n"; } else { $type = ' $' . $key . ' = ' . $val . ';' . "\n"; } - if ($property->isStatic()) { $html .= ' ' . $debug . ' static' . $type;