Overzealous Updates

Open discussion on QxOrm library

Overzealous Updates

Postby Kasuax » Mon Apr 02, 2018 6:32 pm

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
Kasuax
 
Posts: 62
Joined: Mon Jun 20, 2016 6:42 pm

Re: Overzealous Updates

Postby qxorm » Tue Apr 03, 2018 10:07 am

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.
qxorm
Site Admin
 
Posts: 481
Joined: Mon Apr 12, 2010 7:45 am


Return to QxOrm - Open discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron