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.

Aryk 

-- 
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/14afa269-a2ad-4b44-b70d-7c366c972ed9%40googlegroups.com.

Reply via email to