Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save IndyIndyIndy/504efb9575bc7bc1cbc063b578a6279d to your computer and use it in GitHub Desktop.
Save IndyIndyIndy/504efb9575bc7bc1cbc063b578a6279d to your computer and use it in GitHub Desktop.
TYPO3 8+ debug extbase queries with the doctrine query builder
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