loicfrering / losolib

Collection of components for Zend Framework applications and integration of Symfony Components.
http://losohome.wordpress.com/
MIT License
48 stars 6 forks source link

question/suggestion on/for the auth-adapter #6

Open luebbert42 opened 12 years ago

luebbert42 commented 12 years ago

I am using the doctrine2 auth adapter (thanx for providing it!!).

The authenticate method returns the identity field in case the authentication was successful. I would find it more convenient to get the whole object as a return value. Are there any reasons for returning just the identity field? :-)

loicfrering commented 12 years ago

I think it was because I wrote this adapter for Doctrine1 first and the objects returned by Doctrine1 were too heavy to be stored in the session (can't remember why I didn't consider storing an array hydration of the object). But it must be ok with Doctrine2 cause persistence is no more embedded into entities.

I'll try to integrate this soon, thanks :)