FOS BUNDLE throws error with Fr3d Bundle

320 Views Asked by At

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

1

There are 1 best solutions below

0
On BEST ANSWER

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