mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-14 21:03:51 +01:00
bypass thread checks depending on location of Field call
This commit is contained in:
1 parent
e1b03b4a89
commit
361dba58c6
8 files changed
+52
-29
No files matched your search
@@ -172,10 +172,17 @@ extension CoreStoreObject {
|
||||
switch child.value {
|
||||
|
||||
case let property as FieldAttributeProtocol:
|
||||
attributes[property.keyPath] = type(of: property).read(field: property, for: object.rawObject!)
|
||||
attributes[property.keyPath] = type(of: property).read(
|
||||
field: property,
|
||||
for: object.rawObject!,
|
||||
bypassThreadCheck: false
|
||||
)
|
||||
|
||||
case let property as FieldRelationshipProtocol:
|
||||
attributes[property.keyPath] = type(of: property).valueForSnapshot(field: property, for: object.rawObject!)
|
||||
attributes[property.keyPath] = type(of: property).valueForSnapshot(
|
||||
field: property,
|
||||
for: object.rawObject!
|
||||
)
|
||||
|
||||
case let property as AttributeProtocol:
|
||||
attributes[property.keyPath] = property.valueForSnapshot
|
||||
@@ -212,7 +219,11 @@ extension CoreStoreObject {
|
||||
switch property {
|
||||
|
||||
case let property as FieldAttributeProtocol:
|
||||
values[property.keyPath] = type(of: property).read(field: property, for: rawObject)
|
||||
values[property.keyPath] = type(of: property).read(
|
||||
field: property,
|
||||
for: rawObject,
|
||||
bypassThreadCheck: false
|
||||
)
|
||||
|
||||
default:
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user