You could do that and each junction record will now contain a full order object
So, many on the junction table, and one on orders
But that's kinda weird because it's a little redundant - we really just want to do a standard left join on those
I could just add that join manually actually, but that wouldn't take advantage of relationships middleware cached dependency graph
So, I guess I'll add a new relationships type - mixin
With dirac, you can pretty elegantly handle one-to-one, one-to-many, and many-to-many relationships
consider that sort of junction table for many-to-many
You could do that and each junction record will now contain a full order object So,
many
on the junction table, andone
on orders But that's kinda weird because it's a little redundant - we really just want to do a standard left join on thoseI could just add that join manually actually, but that wouldn't take advantage of relationships middleware cached dependency graph
So, I guess I'll add a new relationships type - mixin