/** * @return \yii\db\ActiveQuery */ public function getCellarwines() { return $this->hasMany(Cellarwines::className(), ['cellar_id' => 'id']); }