Last active
June 17, 2019 12:40
-
-
Save GoZOo/23126195c0caa7ef20eda7f9f3bfa001 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