Simulate a query

How to proceed with the simulation of a query ?

It is possible to simulate a query with this piece of code to insert.



The following example allows you to simulate on the method to get the collector 'example'.

$exist = $this->collector['example']->get(array('id_example' => 1)); 

This will store the SQL query in the variable $exist. The SQL query will not run, there will be no results of the query.

SELECT id_example, lib, created_at, n_order, is_valid, ex_type FROM gen_example WHERE 1=1 AND id_example = '1'