Re: When do CBLModel values get updated from the CBLDocument after a sync?

2016-09-15 Thread Brendan Duddridge
I've filed this as an issue in GitHub because I think it's a bug of some sort: https://github.com/couchbase/couchbase-lite-ios/issues/1442 -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving

Re: When do CBLModel values get updated from the CBLDocument after a sync?

2016-09-15 Thread Brendan Duddridge
After doing more tests, it does seem that the problem is due to the dictionary of values not being updated from the CBLModel's document:didChange: method. If I change a property that's directly on my model class, such as an "isFavourite" flag, it gets updated in the CBLDocument AND the

Re: When do CBLModel values get updated from the CBLDocument after a sync?

2016-09-14 Thread Brendan Duddridge
Maybe because what's actually changing is a value within an NSDictionary property and not the entire values property itself? On Wednesday, September 14, 2016 at 8:33:44 PM UTC-6, Jens Alfke wrote: > > > On Sep 14, 2016, at 4:17 PM, Brendan Duddridge > wrote: > > Do I need

Re: When do CBLModel values get updated from the CBLDocument after a sync?

2016-09-14 Thread Jens Alfke
> On Sep 14, 2016, at 4:17 PM, Brendan Duddridge wrote: > > Do I need to force the CBLModel instances to update themselves after a sync? > Or do I need to refetch them from the database in order to get updated data > in my model objects? No, the model object should