adonisjs / lucid

AdonisJS SQL ORM. Supports PostgreSQL, MySQL, MSSQL, Redshift, SQLite and many more
https://lucid.adonisjs.com/
MIT License
1.03k stars 189 forks source link

CamelCase on foreignKeys in SnakeCaseNamingStrategy #918

Closed yannmichaux closed 1 year ago

yannmichaux commented 1 year ago

Hello,

I'm working with Adonis v5, and I'm surprised to see there's an CamelCase naming strategy for only relationForeignKey method Is that a correct behavior or it's a bug ?

Ref: https://github.com/adonisjs/lucid/blob/cbd066442809bbad35b57cb81c2ba09c306550bd/src/Orm/NamingStrategies/SnakeCase.ts#L62

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.