Fixing Bug created by Doctrine Entity Generation