aboutsummaryrefslogtreecommitdiff
path: root/lib/models/License.php
blob: 65b46d20ee9917ff0a6b38c8a58400b8f1021d83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

class License extends SimpleORMap
{
    public static function findDefault()
    {
        return static::findOneBySQL("`default` = '1'");
    }

    protected static function configure($config = [])
    {
        $config['db_table'] = 'licenses';
        parent::configure($config);
    }
}