I need to join a table to the a select/group-by query (which includes the same table), and I\'d like to do it using Arel.
I have a table of :phenotypes
:phenotypes
Just from an initial glance at your code: have you tried renaming the method and the local variable "orthogroups" to something different as you have a relationship by the same name?