I've got a problem when I write the command :
php bin/console doctrine:query:sql 'SELECT * FROM comment'
after enter I got this :
2019-03-24T13:20:10+00:00 [error] Error thrown while running command "doctrine:query:sql "'SELECT" "*" FROM "comment'"". Message: "Too many arguments, expected arguments "command" "sql"."
Too many arguments, expected arguments "command" "sql".
so what did I make so wrong ? thank you
Did you see persisting-objects-to-the-database this document?
# on Windows systems not using Powershell, run this command instead:
php bin/console doctrine:query:sql "SELECT * FROM product"
You need to use "
double quote instead of '
single quote
php bin/console doctrine:query:sql "SELECT * FROM comment"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With