You will probably have to handle that in Member::afterDelete().
On Feb 25, 8:57 am, Deividas <deividas.sen...@gmail.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment