public function getType() { return $this->hasOne(FieldType::className(), ['id' => 'type_id'])->one(); }