How to fetch the data has been soft deleted?

Forum for posting problems using QxOrm library

How to fetch the data has been soft deleted?

Postby behtgod » Tue Feb 28, 2017 7:17 am

Such as title.
I want fetch all deleted data,but the fetch_by_query function filtered out the soft deleted data automaticly.
Are there any solutions?
behtgod
 
Posts: 18
Joined: Mon Nov 16, 2015 8:21 am

Re: How to fetch the data has been soft deleted?

Postby qxorm » Tue Feb 28, 2017 9:29 am

Hello,

You could try to add a condition to your SQL query to fetch your soft deleted items, something like :
Code: Select all
 ... (SQL query generated by qx::dao::fetch QxOrm function) + OR my_delete_column = '1'
qxorm
Site Admin
 
Posts: 481
Joined: Mon Apr 12, 2010 7:45 am


Return to QxOrm - Help

Who is online

Users browsing this forum: No registered users and 5 guests

cron