/** * @return \yii\db\ActiveQuery */ public function getTuotes() { return $this->hasMany(Tuote::className(), ['yritys_id' => 'id']); }
/** * @return \yii\db\ActiveQuery */ public function getTuote() { return $this->hasOne(Tuote::className(), ['id' => 'tuote_id']); }