We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
class Person extends Model { @hasMany('pet', { inverse: 'owner', async: false }) pets; @attr() name; } class Pet extends Model { @belongsTo('person', { inverse: 'pets', async: false }) owner; @attr() name; }
personA: pets: petA personB: pets: petB
petB
personA
petB.set("owner", personA) // It will result in the following relatioships: personA.pets // [petA, petB] personB.pets // []
petA
petA.unloadRecord()
petB.owner // personA personA.pets // BUG: this is now empty. The expected result is [petB]
Run the following command and paste the output below: npm ls ember-source && npm ls ember-cli && npm ls ember-data.
npm ls ember-source && npm ls ember-cli && npm ls ember-data
ember-source@3.10.0 ember-source@3.10.0 ember-data@3.11.0-beta.1
We were also using ember-data@3.10.0 before and the issue is also present in that version.
The text was updated successfully, but these errors were encountered:
This was fixed at some point with all of the relationship layer cleanup :)
Sorry, something went wrong.
No branches or pull requests
Reproduction
Description
petB
so that it is now owned bypersonA
:personA
which ispetA
:petA.unloadRecord()
.Versions
Run the following command and paste the output below:
npm ls ember-source && npm ls ember-cli && npm ls ember-data
.We were also using ember-data@3.10.0 before and the issue is also present in that version.
The text was updated successfully, but these errors were encountered: