Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Issue with updating keySource field #322
There is an issue with updating source field of relation. While initializing source field is removed and relation field appears. But updating will not remove source field and may cause future problems. I've created 2 test cases to show this issue. One is case when i get problem and second is case that displays a source of a problem.
+1 for this bug.
in updateRelations line ~ 1195:
this.attributes[ rel.keySource ] || this.attributes[ rel.key ]
This line is buggy in when you try to nullify a referenced model by setting keySource field to null.