hello.
here's my function
function addDate ($id) {
$this->data["order_id"] = $id;
$this->data["myDate"] = date("Y-m-d");
pr ($this->data);
$this->Order->save($this->data);
}
here's the pr output
Array(
[order_id] = 1839
[myDate] = 2009-07-07
)
and here's a portion the resultant Cake's SQL log
UPDATE `orders` SET `order_id` = 1839, `myDate` = '2009-07-07'
WHERE `orders`.`order_id` = 1839
please notice the "-" replaced by -
due to this replacement MySQL isn't saving my changes.
i can't find where's the error.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---