简体   繁体   中英

FOS BUNDLE throws error with Fr3d Bundle

I have used FOS USER BUNDLE along with Fr3d LDAP bundle. When I try to login, I'm getting the error

Unrecognized field: usernameCanonical

I need your help

seems that your User class is not extending from the FOS Users's base class.

use FOS\UserBundle\Entity\User as BaseUser;
use FR3D\LdapBundle\Model\LdapUserInterface;

class User extends BaseUser implements LdapUserInterface

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM