I have a User class as a base class, then I extended Teacher from a user class.
When I try to log in, I get this error
You cannot upgrade a user from EntityUserProvider that does not contain an identifier. A custom object must be serialized using its own identifier displayed by Doctrine.
I have a serialization / deserialization function in user.php since I dealt with this from FOSUserbundle
public function serialize()
{
return serialize(array(
$this->password,
$this->salt,
$this->usernameCanonical,
$this->username,
$this->expired,
$this->locked,
$this->credentialsExpired,
$this->enabled,
));
}
I cannot find where I can check for an error. I am stuck. please, help
source
share