Jaguar-dart / jaguar_orm

Source-generated ORM with relations (one-to-one, one-to-many, many-to-many), preloading, cascading, polymorphic relations, etc
https://jaguar-dart.github.io
BSD 3-Clause "New" or "Revised" License
217 stars 54 forks source link

Fix foreign keys generation to use the right column name in database and not the field name #159

Closed jaumard closed 4 years ago

jaumard commented 4 years ago

fix https://github.com/Jaguar-dart/jaguar_orm/issues/158

This is a fix for v3, I guess v4 have this bug too but code as changed too much for me to also do the change here.

I would appreciate to have this deployed asap as it's quite a critical bug as the all relation in database are wrong