This will make code completion for ActiveRecords in some IDEs such as Eclipse.
in cli/commands/shell/ModelCommand.php - generateModel()
... $rules=''; + $properties= "/** n"; if(($db=Yii::app()->getDb())!==null) ... foreach($table->columns as $column) { + $properties .= " * @property $column->type $$column->namen"; if($column->isPrimaryKey && $table->sequenceName!==null) ... echo "Warning + $properties .= " */ n"; $tr=array( + '{Properties}'=>$properties, '{ClassName}'=>$className,
in cli/views/shell/model/model.php:
<?php +{Properties} class {ClassName} extends CActiveRecord ...