Symfony 7 · Database (Doctrine)

Run a SQL query

Run a query against the configured database.

php bin/console dbal:run-sql "SELECT * FROM product"

Official Symfony 7 documentation

More database (doctrine) commands

All database (doctrine) commands · Symfony 7 cheatsheet

Was this page helpful?