/**
  * @return \yii\db\ActiveQuery
  */
 public function getSbmWorkOrderOutputRawMaterials()
 {
     return $this->hasMany(SbmWorkOrderOutputRawMaterial::className(), ['adhoc_material_id' => 'id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getWoRawMaterial()
 {
     return $this->hasOne(SbmWorkOrderOutputRawMaterial::className(), ['id' => 'wo_raw_material_id']);
 }