/**
  * @return \yii\db\ActiveQuery
  */
 public function getAdhocMaterial()
 {
     return $this->hasOne(SbmAdhocOrderRequestOutputMaterial::className(), ['id' => 'adhoc_material_id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSbmAdhocOrderRequestOutputMaterials()
 {
     return $this->hasMany(SbmAdhocOrderRequestOutputMaterial::className(), ['adhoc_order_request_output_id' => 'id']);
 }