An entity generator for doctrine