you can copy the sfGuardUser class into your lib/model folder. The autoloader load model in the lib/model first (at least for sf1.0).
so you can easily redefine methods. Thomas On Wed, Aug 20, 2008 at 11:04 AM, Nicolas CHARLOT <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm looking for the best practice for managing many user profile types. > In my project, a user could have only one profile but there are many > types of profiles. > > A possible solution: > - adding a profile_class field in sf_guard_user table > => how to update plugin schema in project? > - redefine getProfile() method > => how to redefine only this method in project/lib/model? I found 2 > bad solutions (not upgrade proof): > - copy/paste PluginsfGuardUser.php (with all its method) > - edit direclty plugins/sfGuardPlugin/lib/model/sfGuardUser.php > (who extends PluginsfGuardUser.php) > > I'm working on Sf 1.1. > > Has someone already run into that purpose? > > Thanks. > -- > Nicolas CHARLOT > http://www.isics.fr > > > > > > > -- Thomas Rabaix Internet Consultant --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---