Пример #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getNoticeDtls()
 {
     return $this->hasMany(NoticeDtl::className(), ['id_uom' => 'id_uom']);
 }
Пример #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getNoticeDtl()
 {
     return $this->hasOne(NoticeDtl::className(), ['id_product' => 'id_product']);
 }