On Wednesday, May 27, 2020 at 3:46:15 AM UTC-7, Aryk Grosz wrote:
>
> I'm trying to chain association joins from table to table.
>
> lets say:
>
> class School < Sequel::Model
>   one_to_many :classes, class: "Klass"
> end
>
> class Klass < Sequel::Model
> one_to_many :students
> end
>
> class Student < Sequel::Model
> end
>
> So I know I can do:
>
> School.association_join(:classes)
>
> and I know I can do
>
> School. association_join(classes: :students)
>
> and I know I can do
>
> Klass.association_left_join(:students)
>
> but can I do something "like"
>
> School.association_join(:classes).association_left_join(:students)
>
> Basically I want to use different join types in the nested association 
> hashes.
>
> I looked in the advanced associations and looked through the code, but 
> could not find how to accomplish this short of just using #join and 
> #left_join and not leveraging the associations I already created.
>

I'm not sure what you want is currently possible, but I'll look into making 
it possible.

Thanks,
Jeremy 

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/c830d960-4f8b-4705-8e39-cd6d97a93f06%40googlegroups.com.

Reply via email to