-
-
Save QuentinFonteneau/1ee2ddd4f35413659abeacd4cc95e554 to your computer and use it in GitHub Desktop.
Debug Drupal 8 queries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// For some queries, use `$query->sqlQuery->` instead of `$query->`. | |
str_replace(['{', '}'], ['', ''], str_replace(array_keys($query->getArguments()), array_values($query->getArguments()), $query->__toString())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment