I'm wondering about syncing non-phantom records.
Let's say that we have a non-phantom, non-modified model (a phantom = false, fresh brand new record just fetached from database), and some other model with HasMany relation.
Now we add that model into the relation's store, and then sync it. Will that model get send? What I've seen in code, store uses three methods to get record arrays to sync: getNewRecords(), getUpdatedRecords() and getRemovedRecords().
getNewRecords() returns all models that are valid and have phantoms set to ture, so not ours, unless store sets it on add, but i haven't noticed such thing.
getUpdatedRecords() returns all models that are dirty, not phantom and valid, so also not ours as it was never modified.
getRemovedRecords() returns all models from store's removed array, so also not ours as it was never removed from that store.
And so, does that mean the model will never get synced with server? Or am I missing something?