I want to call a function when a new object is created though the admin gen.
Currently, the admin gen fires a 'admin.save_object' event after saving an object, but there's no way to know after that if an object has just been created, or simply updated. The method processForm() is the responsible method, and without duplicating the whole function I can't see a sensible way to achieve what I want - so I thought I'd ask the collective for ideas - I suspect I'm missing something obvious. I think that the admin gen might benefit from a presave event to hook into. I could move my logic into the Domain, but I don't think it belongs there for my use case. Thoughts? -- Blog: http://pookey.co.uk/blog Follow me on twitter: http://twitter.com/ipchristian --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---