Hi,
I’m using xpdo for a new project using ModX0.9.5. I’m having problems updating agreggates and composites.... how can I change a foreign key ? I’ve tried set("relation_id",$newId) but since the sql produces something like:
... SET `relation_id` = :relation_id,`id` = :id WHERE `relation_id` = :relation_id AND ...
I’m not sure how this is suposed to work, since we have two different values for the same binding!
Using addOne($relation) produces:
... SET `id` = :id WHERE `relation_id` = :relation_id AND ..
which just doesn’t update the relation_id at all...
Am I doing something wrong ?
Thanks in advance for your help...