Flourish PHP Unframework

fDatabase

posted by mungiu 1 year 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?

Reply
class Foo extends fActiveRecord
{
    public function doStuff()
    {
        $db = fORMDatabase::retrieve(__CLASS__);
        $db->query("UPDATE foo");
    }
}
posted by wbond 1 year ago Reply
In reply to post by wbond from 1 year ago
In reply to original post by mungiu