<?php namespace common\models\ars; use Yii; use yii\behaviors\TimestampBehavior; /** * This is the model class for table "province". * * @property int $id * @property string $name * @property int $province_id */ class Province extends \yii\db\ActiveRecord { /** * {@inheritdoc} */ public static function tableName() { return 'province'; } /** * {@inheritdoc} */ public function rules() { return [ [['province_id'], 'integer'], [['name'], 'string', 'max' => 16], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'id', 'name' => 'name', 'province_id' => 'province_id', ]; } }