Flourish PHP Unframework
This is an archived copy of the forum for reference purposes


posted by mungiu 7 years ago

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");
posted by wbond 7 years ago