I am getting the following error when logging in into my Symfony application (with correct username and password):
ContextErrorException: Catchable Fa
This error is catching because the roles property current provided value is null however you have to give it an array of roles, so to resolve it just return the roles propoerty :
public function getRoles() { return $this->roles; }