I'm receiving the following error:
Uncaught fProgrammerException
-----------------------------
{doc_root}\\manage\\ads.php(10): fActiveRecord->__construct()
{doc_root}\\inc\\flourish\\fActiveRecord.php(1053): fSchema->getKeys('ad_blocks', 'primary')
{doc_root}\\inc\\flourish\\fSchema.php(1885) The table specified, ad_blocks, does not exist in the database
when trying to use multiple databases. In my config file I setup the databases like so:
// INIT DB
$db = new fDatabase('mysql', 'database1', 'username', 'password', 'ip', '3306');
fORMDatabase::attach($db);
$db2 = new fDatabase('mysql', 'database2', 'username', 'password', 'ip', '3306');
fORMDatabase::attach($db2, 'adserver');
and declare the database relation in the class file:
class AdBlock extends fActiveRecord
{
protected function configure()
{
fORM::mapClassToDatabase($this, 'adserver');
}
}
Any ideas on what's going on? I've double-checked that the table does exist ;)