Canonical Id to simple Id

Using [XDataProperty] works great in READING, I've added a "new" field aside the "Canonical Id old one" and so I need very little changes in my existing front-end angular code (that receives the value 4 in the xfk_plant_id field now)

image

What is not clear to me is how to "directly" change the foreign key... I understand that with "Canonical Id" if I want to change the association from the 4 to 6 a PATCH with the following body does the job

{  "fk_plant_id@xdata.ref": "COM_plants(6)" }

but since my front-end sends a PATCH with a "simple, not canonical" body like { "xfk_plant_id": 8 } is there a direct way to make the property read/write with a write method that simply accepts an Integer and updates not the Proxy object but just the pointer to it?
...something like procedure Set_xfkPlantId(const Value: Nullable<Integer>);

I'm feeling myself so newbie with XData... :thinking: