I want to use FOSUserBundle
for signing up and login of my users.
In my case I have 4 types of users (each one have different fields ): students, professors, administrator and Staff.
I have seen the documentation and from what I have seen is that I should have one class called User that extend BaseUser
:
class User extends BaseUser
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
public function __construct()
{
parent::__construct();
// your own logic
}
I couldn't understand how to represent my for classes with one class User?
Thank you