-
Notifications
You must be signed in to change notification settings - Fork 558
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
Update object relationship is trying to create it again #6322
Comments
In order to understand the issue better, can you provide the schema for I am speculating if is related to #6239. Can you downgrade to v12.3.0 and see if you get the same error? |
@kneth My code.
Downgrade my version to 12.3.0 and I get the same issue. |
@mMarcos208 I am trying to reproduce the observed behavior in #6330. How does it match your code? |
@kneth try update Farmer with existing id again. For exemple:
|
@mMarcos208 I have added a test like that, and it seems to work, |
@kneth can you test this cenary?
|
@mMarcos208 I have added the suggested test, and the test passes. |
As we haven't been able to reproduce it, I must ask you to create a unit test (like I did in #6330) to reproduce the observed behavior. |
Migration with same error. I change my schema: I'm using realm 12.6.2 from
to
Remove areaFazendaId and add object AreaFazenda cause same error. [Error: Attempting to create an object of type 'AreaFazenda' with an existing primary key value '60912'.] My migration
|
* Trying to reproduce realm#6322
As @kneth mentioned, if you have a project that we can run and repro (not just code snippets we have to assemble ourselves), please share it with us. |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
How frequently does the bug occur?
Always
Description
I'm trying to update a relationship.
[Error: Attempting to create an object of type 'Farm' with an existing primary key value '2311'.]
Realm 11.9.0 works well.
Stacktrace & log output
Can you reproduce the bug?
Always
Reproduction Steps
No response
Version
12.3.1
What services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
Android
Build environment
Flipper
"react-native": "0.72.7",
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: