Created
August 22, 2019 14:09
-
-
Save ogrosko/3aca9c12db0d4c4e988bf7f72bb6636f to your computer and use it in GitHub Desktop.
Parse Extbase query and view as raw mysql 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
$queryParser = $this->objectManager->get(\TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbQueryParser::class); | |
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($queryParser->convertQueryToDoctrineQueryBuilder($query)->getSQL()); | |
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($queryParser->convertQueryToDoctrineQueryBuilder($query)->getParameters()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment