我創建了自己的用戶包,擴展了FOSUserBundle。Symfony2 - FOSUserBundle - FindUserBy <field_in_custom_UserBundle>
在我的UserBundle中,我有一個memberID字段,它的setter和getters。
我已經可以找到使用的EntityManager由MEMBERID用戶,然後我能找到的UserManager通過匹配用戶的用戶名/電子郵件/ ......與EntityManager的查詢獲得的,但是......
是否有辦法使用UserManager找到UserByMemberID?
謝謝。