So our actual goal was to let the user login using a username or email. The really important method is loadUserByUsername because Symfony calls it when .. return $this->email And in loadUserByUsername, query the database via your .