Get raw SQL query

Submitted by remo - 1 month ago

Sometimes you might want to know the exact SQL query concrete5 executes.

Simply put this line before your run your sql queries and you'll see all of them in your browser window.

\Database::get()->getConfiguration()->setSQLLogger(new \Doctrine\DBAL\Logging\EchoSQLLogger());
Stats Categories Tags
comments powered by Disqus