Skip to content

Commit

Permalink
fix: core data crash with inverse attribute (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
forgotvas authored and rnr committed Sep 6, 2024
1 parent a405dce commit 7870491
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="22758" systemVersion="23F79" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="22758" systemVersion="23G93" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
<entity name="CDAssignment" representedClassName=".CDAssignment" syncable="YES" codeGenerationType="class">
<attribute name="complete" optional="YES" attributeType="Boolean" usesScalarValueType="YES"/>
<attribute name="date" optional="YES" attributeType="Date" usesScalarValueType="NO"/>
<attribute name="descript" optional="YES" attributeType="String"/>
<attribute name="firstComponentBlockId" optional="YES" attributeType="String"/>
<attribute name="title" optional="YES" attributeType="String"/>
<attribute name="type" optional="YES" attributeType="String"/>
<relationship name="futureAssignment" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="CDPrimaryCourse" inverseName="futureAssignments" inverseEntity="CDPrimaryCourse"/>
<relationship name="pastAssignments" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="CDPrimaryCourse" inverseName="pastAssignments" inverseEntity="CDPrimaryCourse"/>
<uniquenessConstraints>
<uniquenessConstraint>
<constraint value="title"/>
Expand Down Expand Up @@ -54,12 +56,12 @@
<attribute name="progressEarned" optional="YES" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="YES"/>
<attribute name="progressPossible" optional="YES" attributeType="Integer 32" defaultValueString="0" usesScalarValueType="YES"/>
<attribute name="resumeTitle" optional="YES" attributeType="String"/>
<relationship name="futureAssignments" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="CDAssignment"/>
<relationship name="pastAssignments" optional="YES" toMany="YES" deletionRule="Cascade" destinationEntity="CDAssignment"/>
<relationship name="futureAssignments" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="CDAssignment" inverseName="futureAssignment" inverseEntity="CDAssignment"/>
<relationship name="pastAssignments" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="CDAssignment" inverseName="pastAssignments" inverseEntity="CDAssignment"/>
<uniquenessConstraints>
<uniquenessConstraint>
<constraint value="courseID"/>
</uniquenessConstraint>
</uniquenessConstraints>
</entity>
</model>
</model>

0 comments on commit 7870491

Please sign in to comment.