diff --git a/extensions/gii/generators/model/Generator.php b/extensions/gii/generators/model/Generator.php index 632f4dbf3a..d0e8e3fc65 100644 --- a/extensions/gii/generators/model/Generator.php +++ b/extensions/gii/generators/model/Generator.php @@ -111,6 +111,10 @@ class Generator extends \yii\gii\Generator you may want to uncheck this option to accelerate the code generation process.', 'generateLabelsFromComments' => 'This indicates whether the generator should generate attribute labels by using the comments of the corresponding DB columns.', + 'useTablePrefix' => 'This indicates whether the table name returned by the generated ActiveRecord class + should consider the tablePrefix setting of the DB connection. For example, if the + table name is tbl_post and tablePrefix=tbl_, the ActiveRecord class + will return the table name as {{%post}}.', ]); }