im trying to setup sqlite as a secondary adapter and have run into a problem.
I am getting the following message:
Message: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'reports.reports' doesn't exist
My code for the table is:
class Table_Reports extends Zend_Db_Table_Abstract {
protected $_name = 'reports';
protected $_id = 'report_id';
protected $_rowClass = 'Model_Report';
protected $_adapter = 'dbReports';
protected $_schema = 'reports';
}
If i change the $_schema to blank then it tries to use my primary mysql database.
My app config is:
resources.multidb.db1.adapter = "PDO_MYSQL"
resources.multidb.db1.host = "localhost"
resources.multidb.db1.dbname = "test"
resources.multidb.db1.username = "root"
resources.multidb.db1.password = ""
resources.multidb.db1.isDefaultTableAdapter = true
resources.multidb.db2.adapter = "PDO_SQLITE"
resources.multidb.db2.dbname = ROOT "/data/reports.db"
Anyone know whats going on?
Thanks
I have turned on Profiling however as far as i can tell nothing is being queried as the error occurs when i run:
$reports = new Table_Reports();
$reportRow = $reports->createRow();
ALTER TABLEis being run when it shouldn't.