-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Cannot update the references (UUIDs) of a relation between two entities on different backends #123
Comments
Do you have a TyphonML model for this? Is the relation containment? |
For sure, i'll share the model with you. No containment relation. A "simple" [0..*] to resume the scenario:
The problematic reduced query:
|
Model before migration:
Model after migration:
|
Hmm. The first query generates a (spurious) empty update:
|
Describe the bug
First test
I tried to update some relations between two entities on different backends. One is stored in a table in a relational database, and the other is in a collection in a document database. The relation between both entities has for cardinality [0..*]. The update failed with the exception:
Query
Second test
We ran another test, using a relation having for cardinality [1]. The query is a bit different (using ":" and not "+:" for the "set" parameter.
Query
The second test returned the following exception:
NB
If we remember correctly, such an update worked in the past when both entities were stored in a relational database.
Thank you for your help
The text was updated successfully, but these errors were encountered: