back to the orm class. Mainly useful in CustomRoles which want to make use of methods defined in other CustomRoles on different tables.
Fixed selectx method generation to handle self referencing tables. Current solution was to not support selectx fetching the parent table attributes when the parent table == current table.