Created
October 27, 2018 09:44
-
-
Save desyncr/b342fa24e66d061b8be44d3c81d4a4a1 to your computer and use it in GitHub Desktop.
doctrine print query
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
// execute & set object | |
$vals = $t->getFlattenedParams(); | |
foreach(explode('?', $t->getSqlQuery()) as $i => $part) { | |
$sql = (isset($sql) ? $sql : null) . $part; | |
if (isset($vals[$i])) $sql .= $vals[$i]; | |
} | |
echo $sql; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment