Answer the question
In order to leave comments, you need to log in
Symfony2 + authorization by id?
Good afternoon!
In Symfony2, I encountered such a problem - that I can not find similar questions on the Internet.
I have a user entity that has an id_vk field (id from the VKontakte profile). I need to load a user from the database whose id_vk matches the one entered.
Any ideas?
Answer the question
In order to leave comments, you need to log in
## Security Configuration
security:
providers:
main:
entity: { class: BlogBundle:User, property: id_vk }
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question