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); } }