Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Custom primary key field name + scope with include causes primary key field to be duplicated on every query #4127
I have a one-to-many relationship between rooms and meetings. The meetings have a custom field name for the primary key column. The code is here: https://gist.github.com/sheepcount/b7505eec4ef82e34ed95.
When querying multiple times using my scope
The problem seems to be in model.js: