Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Retrieve last query #59

Closed
MarlonEtiene opened this issue Mar 24, 2014 · 3 comments
Closed

Retrieve last query #59

MarlonEtiene opened this issue Mar 24, 2014 · 3 comments

Comments

@MarlonEtiene
Copy link

Have any chances to retrieve the last query with filters and order?

I tryed

$queries = DB::getQueryLog();
$last_query = end($queries);

but this returning an empty array.

Thanks.

@Chumper
Copy link
Owner

Chumper commented Mar 27, 2014

What do you want to do with the query?
Currently there is no method to get the query.

@MarlonEtiene
Copy link
Author

I need to get all records after user filtered in the table.

If I have the query, I can run it again and get the records.

In the table, records are in paginate and only the current page in the DOM, then I can't get all the filtered records in other function.

@Chumper
Copy link
Owner

Chumper commented Mar 30, 2014

May you fork the plugin and add your needed changes?
Just store the called queries in an array which you can get back.

@Chumper Chumper closed this as completed Apr 13, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants