Using https://github.com/j4mie/idiorm for my php website.
How do I view the actual SQL that is generate?
ie:
$sql = ORM::for_table('tbl')->create();
$sql->set(array(
'another_id'=> $another_id,
'name' => $name,
'active' => 0
));
$sql->save();
Is generating an error, would like to view the output T-SQL, sometimes its just better to debug that way.
Ta