Awesome!, Thank you!

On Tue, Apr 29, 2008 at 9:23 AM, Chris Hartjes <[EMAIL PROTECTED]> wrote:

>
> On Tue, Apr 29, 2008 at 9:15 AM, Ma'moon <[EMAIL PROTECTED]> wrote:
> > i need to get the inserted ID after executing the query in order to save
> it
> > in other place and i am not sure if "save" will return the inserted ID!
>
> Why not?  Have you tried this:
>
> $this->Foo->save($data);
> echo $this->Foo->id;
>
>
> --
> Chris Hartjes
> Internet Loudmouth
> Motto for 2008: "Moving from herding elephants to handling snakes..."
> @TheKeyBoard: http://www.littlehart.net/atthekeyboard
>
> >
>

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

Reply via email to