MasoniteFramework / orm

Masonite ORM is a beautiful Python ORM. It's also a nearly drop in replacement of the Orator ORM
https://orm.masoniteproject.com
MIT License
165 stars 48 forks source link

fix: Belongs to many - Table can't be without an underscore #825

Closed maicol07 closed 1 year ago

maicol07 commented 1 year ago

Fixes #803

maicol07 commented 1 year ago

This won't work in the scenario that someone only specifies the first key right? like if someone specifies the self.local_key but not the self.foreign_key.

In that case i think it would overwrite whatever they specified as the self.local_key

Why? Inside the elif there's the or that should keep the key id it's defined

maicol07 commented 1 year ago

@josephmancuso ↑