Integrated doctrine for creating entities