255], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'road_type_id' => 'Road Type ID', 'value' => 'Тип дороги', ]; } /** * @return \yii\db\ActiveQuery */ public function getRoads() { return $this->hasMany(Road::className(), ['road_type_id' => 'road_type_id'])->inverseOf('roadType'); } }