Check $this->id

On Thu, Sep 4, 2008 at 3:52 PM, caminante <[EMAIL PROTECTED]> wrote:
>
> Hi all!
> My question is: How to know in model's beforeSave if the model is
> saving a new record or updating an existing one?
> Because I have to do an action if any model is saving a new record but
> not on record update.
> Thanks to all.
>
>
> >
>

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