Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

Commit 3ef3739

Browse files
committed
Renamed CDKWithoutID to CDKEmbedding
In line with relation names from http://microsoft.wikia.com/wiki/WinFS#Relationships This is a partial fix for issue #5
1 parent 0e2809b commit 3ef3739

File tree

8 files changed

+43
-43
lines changed

8 files changed

+43
-43
lines changed

CoreDataKit.xcodeproj/project.pbxproj

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
D556DF8D19EF8C71008556A8 /* CoreDataStackTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D556DF8C19EF8C71008556A8 /* CoreDataStackTests.swift */; };
2525
D566F6AE19F0DCA0003C503F /* NSPropertyDescription+Importing.swift in Sources */ = {isa = PBXBuildFile; fileRef = D566F6AD19F0DCA0003C503F /* NSPropertyDescription+Importing.swift */; };
2626
D566F6B219F0F277003C503F /* JsonDecode+Importing.swift in Sources */ = {isa = PBXBuildFile; fileRef = D566F6B119F0F277003C503F /* JsonDecode+Importing.swift */; };
27-
D56E1EAA19FF7409006A280C /* EmployeesNestedWithoutIdRelation.json in Resources */ = {isa = PBXBuildFile; fileRef = D56E1EA919FF7409006A280C /* EmployeesNestedWithoutIdRelation.json */; };
28-
D56E1EAC19FF749B006A280C /* EmployeeWithRelationWithoutId.swift in Sources */ = {isa = PBXBuildFile; fileRef = D56E1EAB19FF749B006A280C /* EmployeeWithRelationWithoutId.swift */; };
27+
D56E1EAA19FF7409006A280C /* EmployeesNestedEmbeddingRelation.json in Resources */ = {isa = PBXBuildFile; fileRef = D56E1EA919FF7409006A280C /* EmployeesNestedEmbeddingRelation.json */; };
28+
D56E1EAC19FF749B006A280C /* EmployeeWithRelationEmbedding.swift in Sources */ = {isa = PBXBuildFile; fileRef = D56E1EAB19FF749B006A280C /* EmployeeWithRelationEmbedding.swift */; };
2929
D56E1EAE19FF749B006A280C /* Salary.swift in Sources */ = {isa = PBXBuildFile; fileRef = D56E1EAD19FF749B006A280C /* Salary.swift */; };
3030
D58D29D919F83604006D3B07 /* EmployeesNestedRelation.json in Resources */ = {isa = PBXBuildFile; fileRef = D58D29D819F83604006D3B07 /* EmployeesNestedRelation.json */; };
3131
D595F67F19EEDE6000D73790 /* Employee.swift in Sources */ = {isa = PBXBuildFile; fileRef = D595F67E19EEDE6000D73790 /* Employee.swift */; };
@@ -67,21 +67,21 @@
6767
D5093C6919EF9B5700139262 /* NSPersistentStoreCoordinatorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NSPersistentStoreCoordinatorTests.swift; sourceTree = "<group>"; };
6868
D5098CDC1A052D9F000CC246 /* ManagedObjectObserverTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ManagedObjectObserverTests.swift; sourceTree = "<group>"; };
6969
D51AFE151965266000287A2D /* NSPersistentStoreCoordinator.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NSPersistentStoreCoordinator.swift; sourceTree = "<group>"; };
70-
D5253DA019F12F1C00E8B4AF /* NSManagedObject+Importing.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "NSManagedObject+Importing.swift"; sourceTree = "<group>"; };
70+
D5253DA019F12F1C00E8B4AF /* NSManagedObject+Importing.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = "NSManagedObject+Importing.swift"; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
7171
D5253DA219F1398600E8B4AF /* NSManagedObjectContext+Importing.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "NSManagedObjectContext+Importing.swift"; sourceTree = "<group>"; };
7272
D5253DA419F1491E00E8B4AF /* NamedManagedObject.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NamedManagedObject.swift; sourceTree = "<group>"; };
7373
D5253DA619F1591000E8B4AF /* EmployeeIncorrectEntityName.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EmployeeIncorrectEntityName.swift; sourceTree = "<group>"; };
7474
D532100D19F8D63D007C9DCD /* EmployeesWithNull.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = EmployeesWithNull.json; sourceTree = "<group>"; };
7575
D532100F19F8DA4D007C9DCD /* EmployeesWithOmittedField.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = EmployeesWithOmittedField.json; sourceTree = "<group>"; };
76-
D540D82B19FE2A5E00769B84 /* Types+Importing.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Types+Importing.swift"; sourceTree = "<group>"; };
76+
D540D82B19FE2A5E00769B84 /* Types+Importing.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = "Types+Importing.swift"; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
7777
D55152D0196A739500857453 /* NSPersistentStore.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NSPersistentStore.swift; sourceTree = "<group>"; };
7878
D553FD961959505800E71FCE /* NSManagedObjectContext.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NSManagedObjectContext.swift; sourceTree = "<group>"; };
7979
D556DF8C19EF8C71008556A8 /* CoreDataStackTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CoreDataStackTests.swift; sourceTree = "<group>"; };
8080
D566F6AD19F0DCA0003C503F /* NSPropertyDescription+Importing.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "NSPropertyDescription+Importing.swift"; sourceTree = "<group>"; };
8181
D566F6B119F0F277003C503F /* JsonDecode+Importing.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "JsonDecode+Importing.swift"; sourceTree = "<group>"; };
82-
D56E1EA919FF7409006A280C /* EmployeesNestedWithoutIdRelation.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = EmployeesNestedWithoutIdRelation.json; sourceTree = "<group>"; };
83-
D56E1EAB19FF749B006A280C /* EmployeeWithRelationWithoutId.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EmployeeWithRelationWithoutId.swift; sourceTree = "<group>"; };
84-
D56E1EAD19FF749B006A280C /* Salary.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Salary.swift; sourceTree = "<group>"; };
82+
D56E1EA919FF7409006A280C /* EmployeesNestedEmbeddingRelation.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = EmployeesNestedEmbeddingRelation.json; sourceTree = "<group>"; };
83+
D56E1EAB19FF749B006A280C /* EmployeeWithRelationEmbedding.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = EmployeeWithRelationEmbedding.swift; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
84+
D56E1EAD19FF749B006A280C /* Salary.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = Salary.swift; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
8585
D58D29D819F83604006D3B07 /* EmployeesNestedRelation.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = EmployeesNestedRelation.json; sourceTree = "<group>"; };
8686
D595F67C19EEDE3100D73790 /* Model.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = Model.xcdatamodel; sourceTree = "<group>"; };
8787
D595F67E19EEDE6000D73790 /* Employee.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Employee.swift; sourceTree = "<group>"; };
@@ -102,7 +102,7 @@
102102
D5D8E81B1A0363A300991FEA /* ManagedObjectObserver.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ManagedObjectObserver.swift; sourceTree = "<group>"; };
103103
D5EDACE219EF950B00FAC712 /* NSPersistentStoreTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NSPersistentStoreTests.swift; sourceTree = "<group>"; };
104104
D5FE0FBD19F28340008DC1ED /* Employees.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = Employees.json; sourceTree = "<group>"; };
105-
D5FE0FBF19F286DF008DC1ED /* NSManagedObject+ImportingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "NSManagedObject+ImportingTests.swift"; sourceTree = "<group>"; };
105+
D5FE0FBF19F286DF008DC1ED /* NSManagedObject+ImportingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; lineEnding = 0; path = "NSManagedObject+ImportingTests.swift"; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
106106
D5FE0FC319F29FFD008DC1ED /* EmployeeImportable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EmployeeImportable.swift; sourceTree = "<group>"; };
107107
D5FE0FC519F4E0D3008DC1ED /* Car.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Car.swift; sourceTree = "<group>"; };
108108
D5FE0FC719F4E0D4008DC1ED /* EmployeeWithRelations.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EmployeeWithRelations.swift; sourceTree = "<group>"; };
@@ -154,13 +154,13 @@
154154
D5FE0FC319F29FFD008DC1ED /* EmployeeImportable.swift */,
155155
D5253DA619F1591000E8B4AF /* EmployeeIncorrectEntityName.swift */,
156156
D5FE0FC719F4E0D4008DC1ED /* EmployeeWithRelations.swift */,
157-
D56E1EAB19FF749B006A280C /* EmployeeWithRelationWithoutId.swift */,
157+
D56E1EAB19FF749B006A280C /* EmployeeWithRelationEmbedding.swift */,
158158
D5FE0FBD19F28340008DC1ED /* Employees.json */,
159159
D532100D19F8D63D007C9DCD /* EmployeesWithNull.json */,
160160
D532100F19F8DA4D007C9DCD /* EmployeesWithOmittedField.json */,
161161
D58D29D819F83604006D3B07 /* EmployeesNestedRelation.json */,
162162
D5FE0FCB19F4EAC6008DC1ED /* EmployeesReferencedRelation.json */,
163-
D56E1EA919FF7409006A280C /* EmployeesNestedWithoutIdRelation.json */,
163+
D56E1EA919FF7409006A280C /* EmployeesNestedEmbeddingRelation.json */,
164164
);
165165
path = Fixtures;
166166
sourceTree = "<group>";
@@ -344,7 +344,7 @@
344344
D5FE0FBE19F28340008DC1ED /* Employees.json in Resources */,
345345
D5FE0FCC19F4EAC6008DC1ED /* EmployeesReferencedRelation.json in Resources */,
346346
D532101019F8DA4D007C9DCD /* EmployeesWithOmittedField.json in Resources */,
347-
D56E1EAA19FF7409006A280C /* EmployeesNestedWithoutIdRelation.json in Resources */,
347+
D56E1EAA19FF7409006A280C /* EmployeesNestedEmbeddingRelation.json in Resources */,
348348
D58D29D919F83604006D3B07 /* EmployeesNestedRelation.json in Resources */,
349349
);
350350
runOnlyForDeploymentPostprocessing = 0;
@@ -394,7 +394,7 @@
394394
D595F67F19EEDE6000D73790 /* Employee.swift in Sources */,
395395
D5C6C63F19EEC6D60035BFFF /* NSManagedObjectContextTests.swift in Sources */,
396396
D595F68119EEE17B00D73790 /* Model.xcdatamodeld in Sources */,
397-
D56E1EAC19FF749B006A280C /* EmployeeWithRelationWithoutId.swift in Sources */,
397+
D56E1EAC19FF749B006A280C /* EmployeeWithRelationEmbedding.swift in Sources */,
398398
D56E1EAE19FF749B006A280C /* Salary.swift in Sources */,
399399
D5FE0FC019F286DF008DC1ED /* NSManagedObject+ImportingTests.swift in Sources */,
400400
D50881A71A0AC2CD007CA193 /* CoreDataStack+ImportingTests.swift in Sources */,

CoreDataKit/Importing/NSManagedObject+Importing.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ extension NSManagedObject
155155
case .RelatedById:
156156
return performImportRelatedByIdRelationship(relationship, importableValue: importableValue, destinationEntity: destinationEntity)
157157

158-
case .WithoutId:
159-
return performImportWithoutIdRelationship(relationship, importableValue: importableValue, destinationEntity: destinationEntity)
158+
case .Embedding:
159+
return performImportEmbeddingRelationship(relationship, importableValue: importableValue, destinationEntity: destinationEntity)
160160
}
161161
} else {
162162
let error = NSError(domain: CoreDataKitErrorDomain, code: CoreDataKitErrorCode.InvalidPropertyConfiguration.rawValue, userInfo: [NSLocalizedDescriptionKey: "Relationship \(self.entity.name).\(relationship.name) has no destination entity defined"])
@@ -188,7 +188,7 @@ extension NSManagedObject
188188
}
189189
}
190190

191-
private func performImportWithoutIdRelationship(relationship: NSRelationshipDescription, importableValue: ImportableValue, destinationEntity: NSEntityDescription) -> Result<Void> {
191+
private func performImportEmbeddingRelationship(relationship: NSRelationshipDescription, importableValue: ImportableValue, destinationEntity: NSEntityDescription) -> Result<Void> {
192192
switch importableValue {
193193
case let .Some(value as [String: AnyObject]):
194194
return managedObjectContext!.create(destinationEntity).flatMap { destinationObject in
@@ -198,11 +198,11 @@ extension NSManagedObject
198198
}
199199

200200
case let .Some(value as [AnyObject]):
201-
let error = NSError(domain: CoreDataKitErrorDomain, code: CoreDataKitErrorCode.UnimplementedMethod.rawValue, userInfo: [NSLocalizedDescriptionKey: "Multiple referenced / nested relationships not yet supported with relation type \(RelationType.WithoutId)"])
201+
let error = NSError(domain: CoreDataKitErrorDomain, code: CoreDataKitErrorCode.UnimplementedMethod.rawValue, userInfo: [NSLocalizedDescriptionKey: "Multiple referenced / nested relationships not yet supported with relation type \(RelationType.Embedding)"])
202202
return Result(error)
203203

204204
case let .Some(value):
205-
let error = NSError(domain: CoreDataKitErrorDomain, code: CoreDataKitErrorCode.UnimplementedMethod.rawValue, userInfo: [NSLocalizedDescriptionKey: "Referenced relationships not yet supported with relation type \(RelationType.WithoutId)"])
205+
let error = NSError(domain: CoreDataKitErrorDomain, code: CoreDataKitErrorCode.UnimplementedMethod.rawValue, userInfo: [NSLocalizedDescriptionKey: "Referenced relationships not yet supported with relation type \(RelationType.Embedding)"])
206206
return Result(error)
207207

208208
case .Null:

CoreDataKit/Importing/Types+Importing.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ enum RelationType: String {
3535
case RelatedById = "CDKRelatedById"
3636

3737
/// Relation that doesn't use a ID of some sort
38-
case WithoutId = "CDKWithoutId"
38+
case Embedding = "CDKEmbedding"
3939

4040
static func fromString(string: String) -> RelationType {
4141
return RelationType(rawValue: string) ?? .RelatedById

CoreDataKitTests/Fixtures/EmployeeWithRelationWithoutId.swift renamed to CoreDataKitTests/Fixtures/EmployeeWithRelationEmbedding.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// EmployeeWithRelationWithoutId.swift
2+
// EmployeeWithRelationEmbedding.swift
33
// CoreDataKit
44
//
55
// Created by Mathijs Kadijk on 28-10-14.
@@ -10,10 +10,10 @@ import Foundation
1010
import CoreData
1111
import CoreDataKit
1212

13-
class EmployeeWithRelationWithoutId: NSManagedObject, NamedManagedObject {
13+
class EmployeeWithRelationEmbedding: NSManagedObject, NamedManagedObject {
1414

1515
@NSManaged var name: String
1616
@NSManaged var salary: Salary
1717

18-
class var entityName: String { return "EmployeeWithRelationWithoutId" }
18+
class var entityName: String { return "EmployeeWithRelationEmbedding" }
1919
}

CoreDataKitTests/Fixtures/EmployeesNestedWithoutIdRelation.json renamed to CoreDataKitTests/Fixtures/EmployeesNestedEmbeddingRelation.json

File renamed without changes.

CoreDataKitTests/Fixtures/Model.xcdatamodeld/Model.xcdatamodel/contents

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<model userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="6252" systemVersion="14A388a" minimumToolsVersion="Xcode 4.3" macOSVersion="Automatic" iOSVersion="Automatic">
2+
<model userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="6252" systemVersion="14B25" minimumToolsVersion="Xcode 4.3" macOSVersion="Automatic" iOSVersion="Automatic">
33
<entity name="Car" representedClassName="CoreDataKitTests.Car" syncable="YES">
44
<attribute name="color" attributeType="String" syncable="YES"/>
55
<attribute name="name" optional="YES" attributeType="String" syncable="YES">
@@ -32,25 +32,25 @@
3232
<entry key="CDKId" value="name"/>
3333
</userInfo>
3434
</entity>
35-
<entity name="EmployeeWithRelations" representedClassName="CoreDataKitTests.EmployeeWithRelations" syncable="YES">
36-
<attribute name="age" attributeType="Integer 32" defaultValueString="0" syncable="YES"/>
35+
<entity name="EmployeeWithRelationEmbedding" representedClassName="CoreDataKitTests.EmployeeWithRelationWithouId" syncable="YES">
3736
<attribute name="name" attributeType="String" syncable="YES"/>
38-
<relationship name="cars" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Car" inverseName="owners" inverseEntity="Car" syncable="YES">
37+
<relationship name="salary" maxCount="1" deletionRule="Cascade" destinationEntity="Salary" inverseName="employee" inverseEntity="Salary" syncable="YES">
3938
<userInfo>
40-
<entry key="CDKMap" value="car"/>
41-
<entry key="CDKMap.0" value="car_plate"/>
42-
<entry key="CDKMap.1" value="car.plate"/>
39+
<entry key="CDKRelationType" value="CDKEmbedding"/>
4340
</userInfo>
4441
</relationship>
4542
<userInfo>
4643
<entry key="CDKId" value="name"/>
4744
</userInfo>
4845
</entity>
49-
<entity name="EmployeeWithRelationWithoutId" representedClassName="CoreDataKitTests.EmployeeWithRelationWithouId" syncable="YES">
46+
<entity name="EmployeeWithRelations" representedClassName="CoreDataKitTests.EmployeeWithRelations" syncable="YES">
47+
<attribute name="age" attributeType="Integer 32" defaultValueString="0" syncable="YES"/>
5048
<attribute name="name" attributeType="String" syncable="YES"/>
51-
<relationship name="salary" maxCount="1" deletionRule="Cascade" destinationEntity="Salary" inverseName="employee" inverseEntity="Salary" syncable="YES">
49+
<relationship name="cars" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="Car" inverseName="owners" inverseEntity="Car" syncable="YES">
5250
<userInfo>
53-
<entry key="CDKRelationType" value="CDKWithoutId"/>
51+
<entry key="CDKMap" value="car"/>
52+
<entry key="CDKMap.0" value="car_plate"/>
53+
<entry key="CDKMap.1" value="car.plate"/>
5454
</userInfo>
5555
</relationship>
5656
<userInfo>
@@ -59,14 +59,14 @@
5959
</entity>
6060
<entity name="Salary" representedClassName="CoreDataKitTests.Salary" syncable="YES">
6161
<attribute name="amount" attributeType="Integer 64" defaultValueString="0.0" syncable="YES"/>
62-
<relationship name="employee" maxCount="1" deletionRule="Nullify" destinationEntity="EmployeeWithRelationWithoutId" inverseName="salary" inverseEntity="EmployeeWithRelationWithoutId" syncable="YES"/>
62+
<relationship name="employee" maxCount="1" deletionRule="Nullify" destinationEntity="EmployeeWithRelationEmbedding" inverseName="salary" inverseEntity="EmployeeWithRelationEmbedding" syncable="YES"/>
6363
</entity>
6464
<elements>
6565
<element name="Car" positionX="-36" positionY="18" width="128" height="105"/>
6666
<element name="Employee" positionX="-63" positionY="-18" width="128" height="60"/>
6767
<element name="EmployeeImportable" positionX="-63" positionY="-9" width="128" height="90"/>
6868
<element name="EmployeeWithRelations" positionX="-54" positionY="9" width="128" height="88"/>
69-
<element name="EmployeeWithRelationWithoutId" positionX="-45" positionY="27" width="128" height="73"/>
69+
<element name="EmployeeWithRelationEmbedding" positionX="160" positionY="192" width="128" height="73"/>
7070
<element name="Salary" positionX="-36" positionY="36" width="128" height="75"/>
7171
</elements>
7272
</model>

CoreDataKitTests/Fixtures/Salary.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import CoreDataKit
1313
class Salary: NSManagedObject, NamedManagedObject {
1414

1515
@NSManaged var amount: NSDecimalNumber
16-
@NSManaged var employee: EmployeeWithRelationWithoutId
16+
@NSManaged var employee: EmployeeWithRelationEmbedding
1717

1818
class var entityName: String { return "Salary" }
1919
}

0 commit comments

Comments
 (0)