Closed arturasfrontit closed 1 year ago
Hi @arturasfrontit, Try this instead:
public function order()
{
return $this->belongsToThrough(Order::class, OrderItem::class, 'invoice_id', null, [Order::class=> 'order_id']);
} ^^^^^
Hi @arturasfrontit, Try this instead:
public function order() { return $this->belongsToThrough(Order::class, OrderItem::class, 'invoice_id', null, [Order::class=> 'order_id']); } ^^^^^
Tried this one, but it didin't work for me
What isn't working? Is there an error? What does the executed SQL look like?
where is no way to change e_order_id
select
e_orders.* from
e_ordersinner join
e_order_itemson
e_order_items.
e_order_id=
e_orders.
idwhere
e_order_items.
idis null limit 1