The Doctrine user provider, for example, queries the database for fresh data. of the built-in authentication providers, use the user provider to load a User object .