Open skyien opened 4 years ago
final class Object: Content { let anotherObjects : [AnotherObject] } final class Model: Model, Content { let objects: [Object] .... }
After updating anotherObjects array, model update not firing. Model.hasChanges indicate false.
anotherObjects
false
Fluent-kit 1.7.3
@skyien As I understand, that's expected behaviour. Fields without changes don't get updated.
To force model update, you need, say, to re-assign [AnotherObject] to anotherObjects.
[AnotherObject]
After updating
anotherObjects
array, model update not firing. Model.hasChanges indicatefalse
.Fluent-kit 1.7.3