/**
  * @return \yii\db\ActiveQuery
  */
 public function getWorkOrder()
 {
     return $this->hasOne(SbmWorkOrder::className(), ['id' => 'work_order_id']);
 }
Exemplo n.º 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSbmWorkOrders()
 {
     return $this->hasMany(SbmWorkOrder::className(), ['adhoc_order_request_id' => 'id']);
 }
Exemplo n.º 3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getSbmWorkOrders()
 {
     return $this->hasMany(SbmWorkOrder::className(), ['repeat_ref_id' => 'id']);
 }