Initial import
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace app\models\settlement;
|
||||
|
||||
use yii\db\ActiveRecord;
|
||||
|
||||
/**
|
||||
* Class Oblast
|
||||
* @package app\models\settlement
|
||||
* @property $id
|
||||
* @property $ekatte
|
||||
* @property $t_v_m
|
||||
* @property $name
|
||||
* @property $oblast
|
||||
* @property $obstina
|
||||
* @property $kmetstvo
|
||||
* @property $kind
|
||||
* @property $category
|
||||
* @property $altitude
|
||||
* @property $document
|
||||
* @property $abc
|
||||
* @property Oblast $relOblast
|
||||
* @property Obstina $relObstina
|
||||
*
|
||||
*/
|
||||
class Ekatte extends ActiveRecord {
|
||||
|
||||
public static function getDb()
|
||||
{
|
||||
return \Yii::$app->get('db_settlements'); // TODO: Change the autogenerated stub
|
||||
}
|
||||
|
||||
public function getRelOblast() {
|
||||
return $this->hasOne(Oblast::class, ['oblast' => 'oblast']);
|
||||
}
|
||||
public function getRelObstina() {
|
||||
return $this->hasOne(Obstina::class, ['obstina' => 'obstina']);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace app\models\settlement;
|
||||
|
||||
use yii\db\ActiveRecord;
|
||||
|
||||
/**
|
||||
* Class Oblast
|
||||
* @package app\models\settlement
|
||||
* @property $id
|
||||
|
||||
* @property $oblast
|
||||
* @property $ekatte
|
||||
* @property $name
|
||||
* @property $region
|
||||
* @property $document
|
||||
* @property $abc
|
||||
*
|
||||
*/
|
||||
class Oblast extends ActiveRecord {
|
||||
|
||||
public static function getDb()
|
||||
{
|
||||
return \Yii::$app->get('db_settlements'); // TODO: Change the autogenerated stub
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace app\models\settlement;
|
||||
|
||||
use yii\db\ActiveRecord;
|
||||
|
||||
/**
|
||||
* Class Oblast
|
||||
* @package app\models\settlement
|
||||
* @property $id
|
||||
|
||||
* @property $obstina
|
||||
* @property $ekatte
|
||||
* @property $name
|
||||
* @property $category
|
||||
* @property $document
|
||||
* @property $abc
|
||||
*
|
||||
*/
|
||||
class Obstina extends ActiveRecord {
|
||||
|
||||
public static function getDb()
|
||||
{
|
||||
return \Yii::$app->get('db_settlements'); // TODO: Change the autogenerated stub
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user