- added new "select connection" feature to map - ctrl + click for multiselect, closed #174 - added new "wormhole type" table to "Jump info" dialog, closed #174 - added new re-order drag&drop feature for pannels, #470 closed #234 - fixed PHP-Doc comments - added @throw statements - fixed some Javascript memory leaks with infinite counters - updated "Peity jQuery plugin" `3.2.0` -> `3.2.1`
45 lines
909 B
PHP
45 lines
909 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: exodus4d
|
|
* Date: 29.07.17
|
|
* Time: 15:20
|
|
*/
|
|
|
|
namespace Model\Universe;
|
|
|
|
use DB\SQL\Schema;
|
|
|
|
class RegionModel extends BasicUniverseModel {
|
|
|
|
protected $table = 'region';
|
|
|
|
/**
|
|
* No static columns added
|
|
* @var bool
|
|
*/
|
|
protected $addStaticFields = false;
|
|
|
|
protected $fieldConf = [
|
|
'name' => [
|
|
'type' => Schema::DT_VARCHAR128,
|
|
'nullable' => false,
|
|
'default' => ''
|
|
],
|
|
'description' => [
|
|
'type' => Schema::DT_TEXT
|
|
],
|
|
'constellations' => [
|
|
'has-many' => ['Model\Universe\ConstellationModel', 'regionId']
|
|
],
|
|
];
|
|
|
|
/**
|
|
* @param int $id
|
|
* @param string $accessToken
|
|
* @param array $additionalOptions
|
|
*/
|
|
protected function loadData(int $id, string $accessToken = '', array $additionalOptions = []){
|
|
|
|
}
|
|
} |