示例#1
0
 protected static function _connection($to, $from = null)
 {
     $to = static::_class_to_table($to);
     $from = static::_class_to_table($from);
     return DBSchema::connection($from, $to);
 }