Configuration for doctrine