How to load Security Users from the Database (the Entity Provider): The security any authentication backend, like Active Directory, an OAuth server or a database. the AcmeUserBundle bundle contains a User entity class with the following .