Open krainboltgreene opened 9 years ago
I've managed to monkey patch Sync
and Save
enough that it works correctly. Essentially I make Sync
only try to setter=
if it exists, and Save
only model.save
if save
exists.
Realistically this would be built into the top level concept of a subset.
I'm using a collection property to handle scopes in ActiveRecord. Example:
And my twins:
So this all works from a read standpoint. It fails as soon as I sync from either end node. The problem is that
*CollectionTwin
want to doshoes=
, but it's a scope and not a column. If i docollection :shoes, twin: ShoeItemTwin, writeable: false
it "syncs" but stops saving recursively at this point.I need to be able to say "This property/collection has no write, but it still contains something that needs to be synced".