Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialize empty hasMany relationships #5466

Merged
merged 1 commit into from May 8, 2018

Conversation

ryanto
Copy link
Contributor

@ryanto ryanto commented May 5, 2018

This is a fix for the issue reported here. We will now serialize an empty list when the relationship has no records.

This PR removes the if (nonNewHasMany.length > 0) { guard and restructures some of the code.

@ryanto
Copy link
Contributor Author

ryanto commented May 7, 2018

Tests on canary are failing due to the issue reported here: #5465

@runspired
Copy link
Contributor

@ryanto thanks! I have a fix pending for #5465 in #5467

@ryanto
Copy link
Contributor Author

ryanto commented May 8, 2018

Nice! I'll pull that into my branch as soon as it's merged.

@ryanto ryanto force-pushed the serialize_empty_has_many branch from 349afe2 to bff2093 Compare May 8, 2018 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants