Support the ongoing development of Laravel.io →
posted 10 years ago
Database
Last updated 2 years ago.
0

Nobody has any ideas why I get from wrong product when I query the Orders.Items and reference the product relation?

Last updated 2 years ago.
0

I just thought I would let everyone know that I had the relation defined wrong. Changed hasOne to belongsTo and the correct product is now showing.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

frocco frocco Joined 3 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.