Why are has_many default keys reversed from Orator? #815
willjohnathan
started this conversation in
General
Replies: 2 comments
-
Masonite ORM is foreign_key, local_key for the has many relationship |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hmm, okay, I guess there is something subtle I am missing here (version: masonite-orm==2.18.6). A dumbed down script outputs:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sorry, I have scanned through the documentation and issues and haven't seen this discussed. Seems the current convention will always require the keys to be explicitly defined. Also, this is opposite of the Orator documentation here:
and not mentioned as a breaking change in the Masonite-ORM documentation.
Where as Masonite-ORM requires the following:
Beta Was this translation helpful? Give feedback.
All reactions