是否可以创建跨多个表的Bookshelf关系模型?
例如,给定以下结构:
Table "public.foo"
Column | Type
----------------+---------------
id | integer
Table "public.bar"
Column | Type
----------------+---------------
id | integer
foo_id | integer
Table "public.baz"
Column | Type
----------------+---------------
id | integer
bar_id | integer
Table "public.wibble"
Column | Type
----------------+---------------
id | integer
baz_id | integer
wobble_id | integer
Table "public.wobble"
Column | Type
----------------+---------------
id | integer
我想在foo
的实例上加载wobble
集合(wobble
与foo
相关wibble
- > {{1} } - GT; baz
- > bar
)