This is quite automatic. I call the Article.delete method, then everything is done by "magic", thanks to the schema.yml onDelete:cascade parameter in the Media definition. I'm not sure to be clear.
On 12 mai, 10:37, cleve <[EMAIL PROTECTED]> wrote: > Are you still calling the parent delete function after removing the > files? > > On May 12, 8:26 am, nico_bl1nd <[EMAIL PROTECTED]> wrote: > > > Hi everyone, > > > I'm working on two related tables : article/media. > > "onDelete: cascade" work like a charm. But I would the media files to > > be deleted to. > > Where should this part of the code be integrated ? I though it would > > in the Media.php/delete function, but it doesn't work. > > Any idea ? > > > thanks a lot. > > Nicolas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" 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/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
