mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Added in more verbose output of Model->save() functionality
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5220 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
37fd7e41ef
commit
84feacd6b2
1 changed files with 1 additions and 1 deletions
|
@ -197,8 +197,8 @@ class ConsoleShell extends Shell {
|
||||||
$badChars = array("(", ")");
|
$badChars = array("(", ")");
|
||||||
$data = str_replace($badChars, "", $data);
|
$data = str_replace($badChars, "", $data);
|
||||||
$saveCommand = "\$this->{$modelToSave}->save(array('{$modelToSave}' => array({$data})));";
|
$saveCommand = "\$this->{$modelToSave}->save(array('{$modelToSave}' => array({$data})));";
|
||||||
$this->out($saveCommand);
|
|
||||||
@eval($saveCommand);
|
@eval($saveCommand);
|
||||||
|
$this->out('Saved record for ' . $modelToSave);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue