View DQL with Doctrine2
$query = $qb->getQuery(); $sql = $query->getSQL(); $parameters = $query->getParameters(); echo $sql; var_dump($parameters);