The default connection can be set as follows:
TActiveRecordManager::getInstance()->setDbConnection($conn);
All new active record created after setting the
{@link DbConnection setDbConnection()} will use that connection unless
the custom ActiveRecord class overrides the ActiveRecord::getDbConnection().
Set the {@link setCache Cache} property to an ICache object to allow
the active record gateway to cache the table meta data information.