I am getting the following error when logging in into my Symfony application (with correct username and password):
ContextErrorException: Catchable Fa
I fix this error so returning roles:
public function getRoles() { return $this->roles->toArray(); }