Needs review
Project:
Entity API
Version:
7.x-1.x-dev
Component:
Entity CRUD controller
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Feb 2014 at 00:19 UTC
Updated:
26 Feb 2018 at 09:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
DaneMacaulay commentedTest case:
Comment #2
DaneMacaulay commentedComment #3
fagoI don't think it's critical as it doesn't render the module unusable, but anyway - good catch, committed thanks.
Comment #5
Paul B commentedThis patch is causing some problems for me. I'm using the Relation
module with the patch in #1958298: Relation property on entity_metadata_wrapper().
I have a Treatment entity that is related to a Profile through a treatment_has_carer Relation.
The Relation has a field that is set to 0 when the status of the Treatment changes:
With the patch, this no longer works. For example, I have treatment 56 that has relation 95:
It seems that in EntityDrupalWrapper::set(), the $previous_id is 95,
but $this->id is "95". So it now calls updateParent(), which fails. If
I add a setter callback to the property info in #1958298: Relation property on entity_metadata_wrapper() it
succeeds, but this property should be read-only as it's not a 'real'
property.
Comment #6
Paul B commentedThe patch should fix it.
Comment #7
Paul B commentedreroll.