add a
$this->Release->create();

between them, in all likelihood you are creating the first one, then
updating with the second.  In my opinion it is always a good idea to
do a $this->ModelName->create() before doing a save if you want to
make sure you make a new one and don't accidently update an existing
on that might of been made in a previous step.


On 5/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> $this->data['Release']['name'] = 'dfasf';
> $this->data['Release']['date'] = 'dsfsdf';
> $this->Release->save($this->data);
>
> $this->data['Release']['name'] = 'dsfewfew';
> $this->data['Release']['date'] = 'dbrere';
> $this->Release->save($this->data);
>
> when I do such thing in a function ,it always save only the last one
> and ignore the others
>
> what's wrong?
>
>
> >
>


-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to