mirror of
https://github.com/modo-studio/SugarRecord.git
synced 2024-09-11 14:36:41 +03:00
Update Realm insert operation to not update the object internally
This commit is contained in:
parent
824ea3d3f0
commit
46e630406d
@ -17,7 +17,7 @@ extension Realm: Context {
|
||||
|
||||
public func insert<T: Entity>(entity: T) throws {
|
||||
guard let _ = T.self as? Object.Type else { throw Error.InvalidType }
|
||||
self.add(entity as! Object, update: true)
|
||||
self.add(entity as! Object, update: false)
|
||||
}
|
||||
|
||||
public func new<T: Entity>() throws -> T {
|
||||
|
Loading…
Reference in New Issue
Block a user