File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,6 @@ class Version extends PhVersion
39
39
*/
40
40
protected static function _getVersion ()
41
41
{
42
- return [3 , 4 , 7 , 0 , 0 ];
42
+ return [3 , 4 , 8 , 0 , 0 ];
43
43
}
44
44
}
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public function generateAction()
58
58
try {
59
59
$ tableName = $ this ->request ->getPost ('tableName ' , 'string ' );
60
60
61
- $ scaffoldBuilder = new Scaffold ( [
61
+ $ options = [
62
62
'name ' => $ tableName ,
63
63
'schema ' => $ this ->request ->getPost ('schema ' , 'string ' ),
64
64
'force ' => $ this ->request ->getPost ('force ' , 'int ' ),
@@ -67,8 +67,9 @@ public function generateAction()
67
67
'templatePath ' => $ this ->request ->getPost ('templatesPath ' , 'string ' ),
68
68
'templateEngine ' => $ this ->request ->getPost ('templateEngine ' , 'string ' ),
69
69
'modelsNamespace ' => $ this ->request ->getPost ('modelsNamespace ' , 'string ' ),
70
- ]) ;
70
+ ];
71
71
72
+ $ scaffoldBuilder = new Scaffold (array_merge ($ options , ['config ' => $ this ->config ->toArray ()]));
72
73
$ scaffoldBuilder ->build ();
73
74
74
75
$ this ->flashSession ->success (
You can’t perform that action at this time.
0 commit comments