Skip to content

Cookbook/Security/Entity_Provider join wasn't passing UserInterface #5180

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

Closed
wants to merge 1 commit into from
Closed

Conversation

jtwebb
Copy link

@jtwebb jtwebb commented Apr 14, 2015

The join towards the bottom of the page was returning a Doctrine Query object instead of a User object. Adding the getOneOrNullResult() allows it to pass the User object implementing UserInterface.

Also, it looks like my IDE striped some unnecessary whitespace.

@jtwebb jtwebb closed this Apr 20, 2015
@xabbuh
Copy link
Member

xabbuh commented Apr 20, 2015

@jtwebb Why did you close this?

@jtwebb
Copy link
Author

jtwebb commented Apr 20, 2015

It looked like it was fixed after I submitted the pull request, so I don't think this request is necessary now. If I'm wrong, I can go ahead and reopen it.

I noticed it was fixed when I realized I didn't submit the pull request in the correct way and went to change it.

@xabbuh
Copy link
Member

xabbuh commented Apr 20, 2015

Ah indeed, this has been removed in #5184. Anyway, thank you for reading the docs so carefully!

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

Successfully merging this pull request may close these issues.

2 participants