Fix doctrine:generate:entities bug