Set up Doctrine.