示例#1
0
文件: Yritys.php 项目: CDIO3/biosafe
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTuotes()
 {
     return $this->hasMany(Tuote::className(), ['yritys_id' => 'id']);
 }
示例#2
0
文件: Nos.php 项目: CDIO3/biosafe
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTuote()
 {
     return $this->hasOne(Tuote::className(), ['id' => 'tuote_id']);
 }