예제 #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']);
 }