diff --git a/gii/modelDoc/templates/default/model.php b/gii/modelDoc/templates/default/model.php index 696c027..563ba3c 100644 --- a/gii/modelDoc/templates/default/model.php +++ b/gii/modelDoc/templates/default/model.php @@ -73,21 +73,21 @@ // active record $properties[] = ' * @see \CActiveRecord'; if ($this->addModelMethodDoc) - $properties[] = " * @method static \{$modelClass} model(string \$className = null)"; -$properties[] = " * @method \{$modelClass} find(\$condition = '', array \$params = array())"; -$properties[] = " * @method \{$modelClass} findByPk(\$pk, \$condition = '', array \$params = array())"; -$properties[] = " * @method \{$modelClass} findByAttributes(array \$attributes, \$condition = '', array \$params = array())"; -$properties[] = " * @method \{$modelClass} fndBySql(\$sql, array \$params = array())"; -$properties[] = " * @method \{$modelClass}[] findAll(\$condition = '', array \$params = array())"; -$properties[] = " * @method \{$modelClass}[] findAllByPk(\$pk, \$condition = '', array \$params = array())"; -$properties[] = " * @method \{$modelClass}[] findAllByAttributes(array \$attributes, \$condition = '', array \$params = array())"; -$properties[] = " * @method \{$modelClass}[] findAllBySql(\$sql, array \$params = array())"; -$properties[] = " * @method \{$modelClass} with()"; -$properties[] = " * @method \{$modelClass} together()"; -$properties[] = " * @method \{$modelClass} cache(\$duration, \$dependency = null, \$queryCount = 1)"; -$properties[] = " * @method \{$modelClass} resetScope(\$resetDefault = true)"; -$properties[] = " * @method \{$modelClass} populateRecord(\$attributes, \$callAfterFind = true)"; -$properties[] = " * @method \{$modelClass}[] populateRecords(\$data, \$callAfterFind = true, \$index = null)"; + $properties[] = " * @method static \\{$modelClass} model(string \$className = null)"; +$properties[] = " * @method \\{$modelClass} find(\$condition = '', array \$params = array())"; +$properties[] = " * @method \\{$modelClass} findByPk(\$pk, \$condition = '', array \$params = array())"; +$properties[] = " * @method \\{$modelClass} findByAttributes(array \$attributes, \$condition = '', array \$params = array())"; +$properties[] = " * @method \\{$modelClass} fndBySql(\$sql, array \$params = array())"; +$properties[] = " * @method \\{$modelClass}[] findAll(\$condition = '', array \$params = array())"; +$properties[] = " * @method \\{$modelClass}[] findAllByPk(\$pk, \$condition = '', array \$params = array())"; +$properties[] = " * @method \\{$modelClass}[] findAllByAttributes(array \$attributes, \$condition = '', array \$params = array())"; +$properties[] = " * @method \\{$modelClass}[] findAllBySql(\$sql, array \$params = array())"; +$properties[] = " * @method \\{$modelClass} with()"; +$properties[] = " * @method \\{$modelClass} together()"; +$properties[] = " * @method \\{$modelClass} cache(\$duration, \$dependency = null, \$queryCount = 1)"; +$properties[] = " * @method \\{$modelClass} resetScope(\$resetDefault = true)"; +$properties[] = " * @method \\{$modelClass} populateRecord(\$attributes, \$callAfterFind = true)"; +$properties[] = " * @method \\{$modelClass}[] populateRecords(\$data, \$callAfterFind = true, \$index = null)"; $properties[] = " *";