Skip to content

Instantly share code, notes, and snippets.

@pumatertion
Created December 29, 2013 08:53
Show Gist options
  • Save pumatertion/8168692 to your computer and use it in GitHub Desktop.
Save pumatertion/8168692 to your computer and use it in GitHub Desktop.
TYPO3 Flow Repository - Debug the current query statement
$query = $this->createQuery();
/**
* @var \Doctrine\ORM\QueryBuilder $queryBuilder
*/
$queryBuilder = \TYPO3\Flow\Reflection\ObjectAccess::getProperty($query, 'queryBuilder', TRUE);
\TYPO3\Flow\var_dump($queryBuilder->getQuery()->getSQL(), __CLASS__ . '#' . __LINE__, FALSE, FALSE);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment