예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getOrderServices()
 {
     return $this->hasMany(OrderServices::className(), ['service_id' => 'id']);
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getOrderService()
 {
     return $this->hasOne(OrderServices::className(), ['id' => 'order_service_id']);
 }