[symfony-users] Re: Where to extend sfGuardUserPeer class?

2010-07-19 Thread Massimiliano Arione
You can override a plugin's empty class by copying its file in main
lib/ directory and defining your custom methods there.

cheers
Massimiliano

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] Re: Where to extend sfGuardUserPeer class?

2010-07-18 Thread mlu...@gmail.com
The class already has got this function. I just didn't saw it because
sfGuardPeer extends PluginsfGuardUserPeer instead of
BasesfGuardUserPeer.

Thx anyway.

PluginsfGuardUserPeer

On 18 Jul., 13:29, mlu...@gmail.com mlu...@gmail.com wrote:
 Hi!

 I am working on a portal where users have a public profile. For this I
 would like to extend the sfGuardUserPeer class with a
 retrieveByUserName function.

 Can I do this in the in: plugins/sfGuardPlugin/lib/model/
 sfGuardUserPeer.php or will these files be overwritten when I update
 the plugin one day?

 I think I can create my own class(extending sfGuardUserPeer) in /lib/
 model too.

 thanky you,

 michael

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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