Sample Code to connect to the database with doctrine connection