Doctrine: Get SQL from query builder
30 November 2022 (Updated 30 November 2022)
Assuming you have a QueryBuilder
object, you can do:
$queryBuilder->getQuery()->getSQL()
Tagged:
Doctrine
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment