I have the following code:
$newDb = new fDatabase('mysql', 'new_db', 'usr', 'pw', 'same.host');
$connected = $newDb->getConnection();
$oldDb = new fDatabase('mysql', 'old_db', 'usr', 'pw', 'same.host');
$connected2 = $oldDb->getConnection();
fORMDatabase::attach($newDb);
fORMDatabase::attach($oldDb, 'old');
fORM::mapClassToDatabase('User', 'old');
When trying to do anything with the database I get error exceptions that user table does not exist. I noticed this happens when I am connecting to 2 databases on the same host. If i connect to two-different hosts i dont get this issue.