maybe i say something stupid but how can is the best way to attach a database conection to active record for using raw query in models?
class Foo extends fActiveRecord { public function doStuff() { $db = fORMDatabase::retrieve(__CLASS__); $db->query("UPDATE foo"); } }