Skip to content

Commit

Permalink
Merge pull request #11 from gureedo/patch-1
Browse files Browse the repository at this point in the history
fix doc generation
  • Loading branch information
cornernote committed May 8, 2014
2 parents 326ca18 + 1ac5706 commit 8e51331
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions gii/modelDoc/templates/default/model.php
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = " *";

Expand Down

0 comments on commit 8e51331

Please sign in to comment.