losolib icon indicating copy to clipboard operation
losolib copied to clipboard

question/suggestion on/for the auth-adapter

Open luebbert42 opened this issue 13 years ago • 1 comments

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? :-)

luebbert42 avatar Oct 29 '11 13:10 luebbert42

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 :)

loicfrering avatar Oct 29 '11 13:10 loicfrering