Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
luebbert42 opened this issue Oct 29, 2011 · 1 comment
Open

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

luebbert42 opened this issue Oct 29, 2011 · 1 comment

Comments

@luebbert42
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants