You are correct, model callbacks are not called for related models.

You will probably have to handle that in Member::afterDelete().

On Feb 25, 8:57 am, Deividas <[email protected]> wrote:
> I have two controller's, for example Members and MemberPictures, when
> I delete Member i want MemberPicture also deleted, i have set
> MemberPictures dependable in Member model, but I also want to unlink
> actual picture from the file system. I've tried using afterDelete() in
> MemberPicture model, but it doesn't seem to be called when i delete
> Member. Maybe I am doing something wrong?
>
> p.s
> sorry for my bad english :)
--~--~---------~--~----~------------~-------~--~----~
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