Update generator for doctrine2