/** * @return \yii\db\ActiveQuery */ public function getFruit() { return $this->hasOne(Fruit::className(), ['fruit_id' => 'fkfruit_id']); }