mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Moving import in ModelTask to fix issue running bake model all.
This commit is contained in:
parent
f0628d100b
commit
2af5318e7a
2 changed files with 2 additions and 2 deletions
0
app/tmp/cache/views/empty
vendored
0
app/tmp/cache/views/empty
vendored
|
@ -80,6 +80,8 @@ class ModelTask extends Shell {
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function execute() {
|
function execute() {
|
||||||
|
App::import('Model', 'Model', false);
|
||||||
|
|
||||||
if (empty($this->args)) {
|
if (empty($this->args)) {
|
||||||
$this->__interactive();
|
$this->__interactive();
|
||||||
}
|
}
|
||||||
|
@ -165,8 +167,6 @@ class ModelTask extends Shell {
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
function __interactive() {
|
function __interactive() {
|
||||||
App::import('Model', 'Model', false);
|
|
||||||
|
|
||||||
$this->hr();
|
$this->hr();
|
||||||
$this->out(sprintf("Bake Model\nPath: %s", $this->path));
|
$this->out(sprintf("Bake Model\nPath: %s", $this->path));
|
||||||
$this->hr();
|
$this->hr();
|
||||||
|
|
Loading…
Add table
Reference in a new issue