I have two tables, ProductGroup and ProductGroupTranslation which are joined together.
In ProductGroup I have id and in translation table I have title.
Now I want to get all ProductGroups: $categories = ProductGroup::find(array( "product_group_id IS NULL", "order" => "id DESC" ) );
This works and I can acces translation via $categories->productgrouptranslation->getTitle();
But how do I access joined table if I fetch only columns out: $categories = ProductGroup::find(array( "columns" => "id", "product_group_id IS NULL", "order" => "id DESC" ) );