I am Downloading FOSUserBundle
in Symfony Framework using composer and at the time of Update your database schema I am facing this error.
"PHP Fatal error: Class 'FOS\UserBundle\Entity\User' not found in C:\xampp\htdocs\FOSUserTry\src\AppBundle\Entity\User.php on line 13".
I have also attached screenshot below.
User.php
<?php
// src/AppBundle/Entity/User.php
namespace AppBundle\Entity;
use FOS\UserBundle\Entity\User as BaseUser;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="fos_user")
*/
class User extends BaseUser
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
public function __construct()
{
parent::__construct();
// your own logic
}
}