I got the same error when on multi modules system through following commands :
phalcon create-all-models --get-set --mapcolumn --directory apps\frontend\models
In controller file along with this I got the error:
$ForexRates = ForexRates::find();
print_r($ForexRates);
Got the error:
Notice: Array to string conversion in C:\xampp\htdocs\testingtoday\apps\frontend\Module.php on line 78
Notice: Array to string conversion in C:\xampp\htdocs\testingtoday\apps\frontend\Module.php on line 78
Table 'forex_rates' doesn't exist in database when dumping meta-data for testingtoday\frontend\Models\ForexRates
And on following line changed the code : in testingtoday\apps\frontend Module.php
$di['db'] = function () use ($config) {
// return new DbAdapter($config->toArray());
//};
To Replaces with :
$di['db'] = function() use ($config) { //
return new DbAdapter(array(
"host" =>$config->database->host,
"username" => $config->database->username,
"password" => $config->database->password,
"dbname" => $config->database->dbname
));
};