Created
April 16, 2019 12:13
-
-
Save IndyIndyIndy/504efb9575bc7bc1cbc063b578a6279d to your computer and use it in GitHub Desktop.
TYPO3 8+ debug extbase queries with the doctrine query builder
This file contains 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
use \TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbQueryParser; | |
use \TYPO3\CMS\Extbase\Utility\DebuggerUtility; | |
$queryParser = $this->objectManager->get(Typo3DbQueryParser::class); | |
DebuggerUtility::var_dump($queryParser->convertQueryToDoctrineQueryBuilder($query)->getSQL()); | |
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