Page 1 of 1

Overzealous Updates

PostPosted: Mon Apr 02, 2018 6:32 pm
by Kasuax
I recently noticed that an object that exhibits an N-N relationship with another object is being aggressively over-saved.

qx::dao::save_with_relation(obj, relation)

this ends up updating the obj, the qxee n-n table, and apparently the related item too... That last part is a problem. How can I disable or work around this without manually updating the qxee table myself?

Thanks,
SH

Re: Overzealous Updates

PostPosted: Tue Apr 03, 2018 10:07 am
by qxorm
Hello,

How can I disable or work around this without manually updating the qxee table myself?

You can't.
So you have to :
- update your instance manually without any relation : qx::dao::save(obj) ;
- then update manually the extra-table.