Is $data['id'] existing or not an empty value?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send e
ey ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de [EMAIL PROTECTED]
Enviado el: Sábado, 23 de Diciembre de 2006 10:59 a.m.
Para: Cake PHP
Asunto: Insert Multiple recors at once (desespe
Hello :
I'm trying to save multiple records at once:
this is my code
foreach ($this->data as $data) {
$this->Wishlist->create();
$this->Wishlist->save($data);
}
I read in previous messages that I need to reset the ID, I was using
unset($this->Wishlist->id);