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