Is it possible to create join query in subclass of Hanami::Repository
?
I found that this pull request implements this feature but I can't find it in current codebase.
Is it possible to create join query in subclass of Hanami::Repository
?
I found that this pull request implements this feature but I can't find it in current codebase.
Copyright © 2021 Jogjafile Inc.
Hanami model based on rom, that's why you can use
Relation#join
method with a needful relation.For this you need to call
join
method for one relation and set other relation as an attribute:And that's all.
Some helpful links:
left_join