I am just attempting to use the new cake release. I created a users
table and turned on scaffolding to see it shine in 1.2.x.x.
Unfortunately, I get the following error when I try to save. Is this a
bug I need to post or did I setup something wrong?
Notice (8): Undefined index: format [CORE/cake/libs/model/model.php,
line 1071]
Context | Code
$this = User object
$data = array("User" => array)
$validate = true
$fieldList = array()
$db = DboMysql object
$whitelist = false
$values = array(0 => "1", 1 => "[EMAIL PROTECTED]", 2 => "junk", 3 =>
"first", 4 => "last", 5 => "1")
$fields = array(0 => "id", 1 => "email", 2 => "password", 3 =>
"first_name", 4 => "last_name", 5 => "active", 6 => "modified")
$count = 1
$weHaveMulti = false
$newID = "1"
$v = array("id" => "1", "email" => "[EMAIL PROTECTED]", "password" =>
"junk", "first_name" => "first", "last_name" => "last", "active" =>
"1")
$n = "User"
$field = "modified"
$y = "1"
$x = "active"
$exists = true
$updateCol = "modified"
$colType = array("formatter" => "intval", "name" => "int", "limit"
=>
"11")
if ($this->hasField($updateCol) && !in_array($updateCol,
$fields) && ($whitelist && in_array($updateCol, $fieldList) || !
$whitelist)) {
$colType = am(array('formatter' => 'date'), $db-
>columns[$this->getColumnType($updateCol)]);
$fields[] = $updateCol;
$values[] = $colType['formatter']($colType['format']);
}
Model::save() - CORE/cake/libs/model/model.php, line 1071
Scaffold::__scaffoldSave() - CORE/cake/libs/controller/scaffold.php,
line 305
Scaffold::__scaffold() - CORE/cake/libs/controller/scaffold.php, line
449
Scaffold::__construct() - CORE/cake/libs/controller/scaffold.php, line
194
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 339
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 323
[main] - CORE/app/webroot/index.php, line 83
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---