/** * @return \yii\db\ActiveQuery */ public function getFieldType() { return $this->hasOne(FieldType::className(), ['id' => 'type']); }