Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

Commit

Permalink
Don't update read only relationships.
Browse files Browse the repository at this point in the history
  • Loading branch information
wvteijlingen committed Oct 19, 2016
1 parent e47df73 commit 67022c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Spine/Operation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,9 @@ class SaveOperation: ConcurrentOperation {
}

fileprivate func updateRelationships() {
let relationships = resource.fields.filter { $0 is Relationship }
let relationships = resource.fields.filter { field in
return field is Relationship && !field.isReadOnly
}

guard !relationships.isEmpty else {
updateResource()
Expand Down

0 comments on commit 67022c1

Please sign in to comment.