mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-14 07:33:28 +01:00
Clarify documentation around "required" inverse relationships #354
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @H2CO3 on GitHub (Dec 31, 2020).
Hi, and thanks for making CoreStore!
The documentation says:
However, I was able to create a schema where some of the relationships do not have inverses, and this did not result in any compiler or runtime errors. What's the deal?
@JohnEstropia commented on GitHub (Dec 31, 2020):
The runtime assertions will run when the Schema is passed to the DataStack initiaizer. Were you actually able to use your objects?
@H2CO3 commented on GitHub (Jan 2, 2021):
Yes, I was able to fill the
DataStackwith related objects, and I was able to usefetchAllto retrieve objects along with their children. I even made sure that no lazy loading is happening (I printed some leaf properties in order to trigger faulting).@JohnEstropia commented on GitHub (Jan 3, 2021):
@H2CO3 I just checked and the assertions are there. Are you running on
-Ooptimized builds? Assertions don't run on release builds. Other than that you may be implementing your ownCoreStoreLoggerand missed implementing theCoreStoreLogger.assert(...)method.@H2CO3 commented on GitHub (Jan 3, 2021):
Alright, I was indeed running an optimized build. That's it, thanks!