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

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

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