amplication / amplication

🔥🔥🔥 The Only Production-Ready AI-Powered Backend Code Generation
https://amplication.com
Other
15.13k stars 1.48k forks source link

"Foreign Key Field Name" option is missing a validation of field names collision #8893

Open mulygottlieb opened 1 month ago

mulygottlieb commented 1 month ago

Suggested solution: As part of the DSG- validate the field names, and in case of a fields' "collision", issue a clear error message and fail the build.

PazYanoverr commented 1 month ago

@mulygottlieb - I've updated the description with the solution we've discussed

yuval-hazaz commented 3 weeks ago

We need to implement this in both version of DSG and maybe it is a good time to think about moving the prepareContext to a common library, or at least add an item to the backlog