mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-12-02 13:14:00 +01:00
fixed Readme
replaced importObjects with importUniqueObjects
This commit is contained in:
1 parent
c990f7764a
commit
9e0493a20d
1 file changed
+1
-1
@@ -733,7 +733,7 @@ or multiple objects at once with the `importUniqueObjects(...)` method:
|
|||||||
```swift
|
```swift
|
||||||
CoreStore.beginAsynchronous { (transaction) -> Void in
|
CoreStore.beginAsynchronous { (transaction) -> Void in
|
||||||
let jsonArray: [[String: AnyObject]] = // ...
|
let jsonArray: [[String: AnyObject]] = // ...
|
||||||
try! transaction.importObjects(
|
try! transaction.importUniqueObjects(
|
||||||
Into(MyPersonEntity),
|
Into(MyPersonEntity),
|
||||||
sourceArray: jsonArray
|
sourceArray: jsonArray
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user