mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
Fixing issue with bake model <name>
This commit is contained in:
parent
6039d6ebe4
commit
ea6e3dd076
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ class ModelTask extends Shell {
|
||||||
|
|
||||||
if (!empty($this->args[0])) {
|
if (!empty($this->args[0])) {
|
||||||
$model = Inflector::camelize($this->args[0]);
|
$model = Inflector::camelize($this->args[0]);
|
||||||
|
$this->useDbConfig = 'default';
|
||||||
if ($this->bake($model)) {
|
if ($this->bake($model)) {
|
||||||
if ($this->_checkUnitTest()) {
|
if ($this->_checkUnitTest()) {
|
||||||
$this->bakeTest($model);
|
$this->bakeTest($model);
|
||||||
|
|
Loading…
Add table
Reference in a new issue