Esempio n. 1
0
 public function getOrdersItem()
 {
     return $this->hasMany(OrdersItem::className(), ['reservationinfo_id' => 'id'])->viaTable('reservationinfo', ['objreservation_id' => 'id'])->viaTable('objreservation', ['customer_id' => 'id'])->viaTable('customers', ['user_id' => 'id']);
 }
Esempio n. 2
0
 public function getOrdersItem()
 {
     return $this->hasMany(OrdersItem::className(), ['order_id' => 'id']);
 }