Skip to content

Instantly share code, notes, and snippets.

@esvit
Last active December 25, 2015 06:39
Show Gist options
  • Save esvit/6933330 to your computer and use it in GitHub Desktop.
Save esvit/6933330 to your computer and use it in GitHub Desktop.
Bazalt ORM Handler for WhoopsPHP
$handler->addDataTableCallback('ORM', function() {
list($query, $params) = \Bazalt\ORM\Connection\Manager::getConnection()->getLastQuery();
$fullQuery = \Bazalt\ORM\Query::getFullQuery($query, $params);
$output = array(
'Full' => $fullQuery,
'Query' => $query,
'Params' => print_r($params, true)
);
return $output;
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment