Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
95c26746
Commit
95c26746
authored
Sep 06, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hint fix.
parent
4e1ab6e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Generator.php
framework/yii/gii/generators/model/Generator.php
+5
-2
No files found.
framework/yii/gii/generators/model/Generator.php
View file @
95c26746
...
@@ -93,8 +93,11 @@ class Generator extends \yii\gii\Generator
...
@@ -93,8 +93,11 @@ class Generator extends \yii\gii\Generator
'db'
=>
'This is the ID of the DB application component.'
,
'db'
=>
'This is the ID of the DB application component.'
,
'tableName'
=>
'This is the name of the DB table that the new ActiveRecord class is associated with, e.g. <code>tbl_post</code>.
'tableName'
=>
'This is the name of the DB table that the new ActiveRecord class is associated with, e.g. <code>tbl_post</code>.
The table name may consist of the DB schema part if needed, e.g. <code>public.tbl_post</code>.
The table name may consist of the DB schema part if needed, e.g. <code>public.tbl_post</code>.
The table name may contain an asterisk at the end to match multiple table names, e.g. <code>tbl_*</code>.
The table name may contain an asterisk to match multiple table names, e.g. <code>tbl_*</code>
In this case, multiple ActiveRecord classes will be generated, one for each matching table name.'
,
will match tables who name starts with <code>tbl_</code>. In this case, multiple ActiveRecord classes
will be generated, one for each matching table name; and the class names will be generated from
the matching characters. For example, table <code>tbl_post</code> will generate <code>Post</code>
class.'
,
'modelClass'
=>
'This is the name of the ActiveRecord class to be generated. The class name should not contain
'modelClass'
=>
'This is the name of the ActiveRecord class to be generated. The class name should not contain
the namespace part as it is specified in "Namespace". You do not need to specify the class name
the namespace part as it is specified in "Namespace". You do not need to specify the class name
if "Table Name" contains an asterisk at the end, in which case multiple ActiveRecord classes will be generated.'
,
if "Table Name" contains an asterisk at the end, in which case multiple ActiveRecord classes will be generated.'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment