hasOneDeep not working or I'm crazy #231
Replies: 1 comment
-
Hi @thedangler, $this->hasOneDeep(
Merchant::class,
[Order::class,Subscription::class],
['id', 'id', 'id'],
['subscription_id', 'Order_Id', 'Merchant_Id']
) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have the following:
Table A
subscription_id
Table Subscription
id
Order_Id
Table Order
id
Merchant_Id
Merchant
Id
How do I get the merchant using hasOneDeep from Table A
I tried $this->hasOneDeep(Merchant::class,[Order::class,Subscription::class])
but its not working. Its not joining the Table A.subscription_id on the subscription table.
Beta Was this translation helpful? Give feedback.
All reactions