Swift mutable structs applyTODb
throws cannotRelateToUnsavedEntities
#69
Labels
bug
Something isn't working
applyTODb
throws cannotRelateToUnsavedEntities
#69
Describe the bug
applyToDb
throwscannotRelateToUnsavedEntities(message: "Must put the entity before you can apply().")
with mutable structs in Swift. Classes work just fine with code sequence.Basic info:
To Reproduce
Classes work:
The output is:
That is, the backlink to the ToOne relations works when appending to the ToMany relationship.
This does NOT work:
The output is:
Expected behavior
Running
applyToDb
on aToMany
relationship when both values have beenput
should not result in errors.Code
See above.
Logs, stack traces
See above.
Additional context
The text was updated successfully, but these errors were encountered: