No strategy for updating resource keys
Reported by Carl Porth | July 2nd, 2008 @ 07:50 PM
Currently there is no strategy for updating a resource's key. Either you should not be allowed to do so (with an error being raised) or you should.
Right now the query passed to Adapter#update(attributes, query) contains dirty attributes (including key attributes). This is problematic because the adapter cannot use the key in the query to find the resource if it has changed.
In order to solve this, the original attributes of the key would have to be passed to the query so that the resource can be found and updated.
I have attached a simple example which illustrates the problem. Note the UPDATE log statement which uses the dirty id to update the resource.
Comments and changes to this ticket
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
