Symfony FOSUserBundle versions: 2.1.2
Description of the problem including expected versus actual behavior:
As stated in 2.x documentation, one should extend:
use FOS\UserBundle\Entity\User as BaseUser;
class User extends BaseUser
{
}
But, there is no such a namespace FOS\UserBundle\Entity. I think it should be FOS\UserBundle\Model.
Hello @peyman-mohamadpour,
First of all are you sur that you have applied this command :
composer require friendsofsymfony/user-bundle "~1.3"
and enable the bunde in the kernel ?
Can you see the FOSUserbundle in your vendor ?
Thanks for your answer. As I stated, I have the FOSUser 2.1.2 (on Symfony 3.4.6).
Documentation wrongly says you should extend:
FOS\UserBundle\Entity\User
but I think, that should be changed to:
FOS\UserBundle\Model\User
^^
Most helpful comment
Thanks for your answer. As I stated, I have the FOSUser 2.1.2 (on Symfony 3.4.6).
Documentation wrongly says you should extend:
but I think, that should be changed to: