The Doctrine repository “Doctrine\ORM\EntityRepository” must implement UserProviderInterface in symfony2
问题 I am getting above error when login. With property option in security.yml it is working. I have added the @ORM\Entity(repositoryClass="versionR\userBundle\Entity\UserRepository") line on my entity class, dobule checked path, cleared cache but no luck. User entity class <?php namespace versionR\userBundle\Entity; use Doctrine\ORM\Mapping as ORM; //use Symfony\Component\Security\Core\Role\Role; use Symfony\Component\Security\Core\User\UserInterface; /** * User * * @ORM\Table(name="user") * @ORM