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:
chartjes 2007-05-29 21:11:34 +00:00
parent 37fd7e41ef
commit 84feacd6b2

View file

@ -197,8 +197,8 @@ class ConsoleShell extends Shell {
$badChars = array("(", ")");
$data = str_replace($badChars, "", $data);
$saveCommand = "\$this->{$modelToSave}->save(array('{$modelToSave}' => array({$data})));";
$this->out($saveCommand);
@eval($saveCommand);
$this->out('Saved record for ' . $modelToSave);
}
break;