Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yii2-giiant
Project
Project
Details
Activity
Releases
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dmstr
yii2-giiant
Commits
16d7eb14
Commit
16d7eb14
authored
Oct 27, 2016
by
Tobias Munk
Committed by
GitHub
Oct 27, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #184 from StalkAlex/patch-1
Apply cutom model name in UI giiant
parents
d842bfad
f57d4050
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Generator.php
src/generators/model/Generator.php
+4
-1
No files found.
src/generators/model/Generator.php
View file @
16d7eb14
...
...
@@ -246,7 +246,10 @@ class Generator extends \yii\gii\generators\model\Generator
foreach
(
$this
->
getTableNames
()
as
$tableName
)
{
list
(
$relations
,
$translations
)
=
array_values
(
$this
->
extractTranslations
(
$tableName
,
$relations
));
//var_dump($relations,$tableName);exit;
$className
=
$this
->
generateClassName
(
$tableName
);
$className
=
php_sapi_name
()
===
'cli'
?
$this
->
generateClassName
(
$tableName
)
:
$this
->
modelClass
;
$queryClassName
=
(
$this
->
generateQuery
)
?
$this
->
generateQueryClassName
(
$className
)
:
false
;
$tableSchema
=
$db
->
getTableSchema
(
$tableName
);
...
...
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