Skip to content

[BUGFIX beta] Fix JSONSerializer.serializeHasMany() issue #3760 - #3765

Merged
bmac merged 1 commit into
warp-drive-data:masterfrom
sebweaver:3760-fix
Sep 17, 2015
Merged

[BUGFIX beta] Fix JSONSerializer.serializeHasMany() issue #3760#3765
bmac merged 1 commit into
warp-drive-data:masterfrom
sebweaver:3760-fix

Conversation

@sebweaver

Copy link
Copy Markdown
Contributor

serializeHasMany() omits unknown relationships of pushed record rather than
setting them to undefined.

sebweaver added a commit to sebweaver/ember-localforage-adapter that referenced this pull request Sep 14, 2015
Temp workaround for ED issue warp-drive-data/warp-drive#3760 until
the PR warp-drive-data/warp-drive#3765 will be merged.

Also change class structure to fit the current one (with a dedicated
`_shouldSerializeHasMany` method).
sebweaver added a commit to sebweaver/ember-localforage-adapter that referenced this pull request Sep 14, 2015
Temp workaround for ED issue warp-drive-data/warp-drive#3760 until
PR warp-drive-data/warp-drive#3765 is merged.

Change class structure also to reflect the new one introduced earlier by ED 1.13
(with dedicated `_shouldSerializeHasMany`).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remove this console.log?

…data#3760

`serializeHasMany()` omits unknown relationships of pushed record rather than
setting them to `undefined`.
@sebweaver

Copy link
Copy Markdown
Contributor Author

My bad, I removed the extraneous console.log.

bmac added a commit that referenced this pull request Sep 17, 2015
[BUGFIX beta] Fix JSONSerializer.serializeHasMany() issue #3760
@bmac
bmac merged commit 047c1ea into warp-drive-data:master Sep 17, 2015
@bmac

bmac commented Sep 17, 2015

Copy link
Copy Markdown
Contributor

Thanks @sebweaver

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.

2 participants