Yes, this plugin is based on the symfony 1.1 event dispatcher and currently requires symfony 1.1. Backporting the plugin to symfony 1.0 shouldn't be too difficult, however. I'm planning to do that soon.
The events this plugin adds to your Propel objects differ from the behaviors model in a few notable ways: * There are many more events thrown. Currently events are thrown that match the behavior mixins that come with symfony, as well as all the foreign key accessor/mutator methods. * This plugin adds a "method_not_found" event, which is not present in the behaviors model. This event will allow plugins to add methods to objects based on configuration variables provided by the user. * These events expose select protected members from inside the object. This would allow someone to, for example, have the countXXX() method return the number of objects stored in the internal collection if an object is new, which Propel does not do for some reason. I should also note that this plugin leaves the behaviors system intact. Events are dispatched before the mixins are called, however, and are therefore given preference. Thanks for your feedback, Kris On May 20, 1:12 am, "Nicolas Perriault" <[EMAIL PROTECTED]> wrote: > 2008/5/20 Tristan Rivoallan <[EMAIL PROTECTED]>: > > >> If anyone's interested, please take a look at this plugin and provide > >> input/feedback/criticism of how I'm using the symfony 1.1 dispatcher. > > > how is this plugin different from propel "behaviors" feature ? > > Obviously this one is based on the 1.1 event dispatcher, no more on > 1.0 mixins. I think it's a cool idea, but not BC so use with caution. > > ++ > > -- > Nicolas > Perriaulthttp://prendreuncafe.com-http://symfonians.net-http://sensiolabs.com > Phone: +33 660 92 08 76 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" 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-devs?hl=en -~----------~----~----~----~------~----~------~--~---
