geekcell / ddd-symfony-bundle

A bundle for pragmatic domain driven design in Symfony.
https://www.geekcell.io
MIT License
7 stars 1 forks source link

Support model names that end in `id` #39

Open janvt opened 1 year ago

janvt commented 1 year ago

When generating a model with a name that ends in id and asking it to generate an identity, the identity class is not suffixed with an additional Id, leaving both classes called the same. I suppose the same would happen with uuid.

janvt commented 1 year ago

One could argue that the model name should not end in id. However a model could be called HorseCupid or Paraboloid and the issue would also persist.