top | item 43466969

(no title)

malteg | 11 months ago

something like https://gorm.io/docs/update.html#Update-from-SubQuery ?

discuss

order

btdmaster|11 months ago

Yup, but when I've tried gorm this is not generic enough to let me do this nested generically (with relations).

In gorm you can't do Car.update({'soundsystem': [{id: 'bluetoothProtocolId'}]}), you can only do something like Car.Association('soundsystem').update([{id:'bluetoothProtocolId'}]), fundamental difference being that the latter is dealing with Car internals and is not generic.