/** * Sets the database to use for ORM operations. */ public static function setDatabase(fDatabase $database) { self::$database = $database; fORMDatabase::attach($database); }