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
Fix eager loading of relations when using parse/format #1838
This fixes eager loading of related models when the parent model had a custom id attribute and a parse/format method that mutated it.
For more info check the linked issue.
This just runs the
A better approach would probably be to delay the parsing of model attributes until the very last moment before models are delivered to the user, but that would require a more extensive refactoring of the whole