Hello! Many thanks to Mariano and Wood for your inputs.
You know, I'm having a little trouble making the "function afterSave() { if (!isset($this->data[$this->name]['id']) || empty($this->data[$this->name]['id'])) { // We just created the record } } " solution work. It always executes the code inside the if(), no matter if you're creating the object or just editing it. It's weird... Anyway, I'm going to try Wood solution by now and report back later on. Thanks again. --~--~---------~--~----~------------~-------~--~----~ 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 email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---