We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Phalcon DevTools (2.0.8) Error: Table "polls" does not exist.

I am doing the 15 minute poll app. I have the db configured w/ all the correct credentials. When I try to create the "polls" model" from the CLI, I keep getting this message-> Phalcon DevTools (2.0.8) Error: Table "polls" does not exist. I checked my config file to make sure I had the adapter set to 'mysql" along w/my username, password, dbname all being set correctly. I also checked to make sure I have the correct drivers in place via CLI & this is what I am getting back: -air:blog demet8$ php --info | grep drivers PDO drivers => mysql, odbc, sqlite, pgsql. So I am not sure what the issue is @ this point. Any help would be appreciated. Thank you.

What is the command you're issuing? Single table scaffolding or for all tables?

I've also had problems when I autoloaded my previously generated models along with the config file, so when I changed the DB structure, devtools was reading an old model and failed.