losolib
losolib copied to clipboard
question/suggestion on/for the auth-adapter
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? :-)
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 :)