You need to create your own listener that extends from
Doctrine_Template_Blameable_Listener and then grab the user id.

http://www.doctrine-project.org/extension/Blameable/1_2-1_0

You have a couple of options to get the user id:

1) Use the session object of the app:
session: 
symfony/user/sfUser/attributes: { symfony/user/sfUser/attributes: {  }, 
sfGuardSecurityUser: { user_id: '2' }, admin_module: { package.sort: [null, 
null] } }
  symfony/user/sfUser/authenticated: true
  symfony/user/sfUser/culture: en
  symfony/user/sfUser/lastRequest: 1256775125

2) (frowned upon) use the sfContext object to get the user object and
then the user id:

sfContext::getInstance()->getUser()



On Sun, 2009-11-01 at 07:40 -0800, Fabrizio wrote:
> http://www.doctrine-
> project.org/extension/Blameable 


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to