I have two models company and companyAdminInfo and every company has one companyAdminInfo (as seen in these pictures).
Now I have a template where I want to see all companies but filter them before by attributes of companyAdminInfo e.g. company.companyAdminInfo.billable == true.
This is the route which defines /companies (it’s in the picture above, I can only upload one picture)
From there I’ll take model and I get it in my component as companies (component is also seen in the picture above) This works, I’m able to filter company.name == ‘test’, also company.companyAdminInfo != null works (meaning every company has a companyAdminInfo). But filtering by company.companyAdminInfo.billable won’t work anymore. company.companyAdminInfo.billable == null however returns all entries (but billable, as seen in the database or in the ember developer tool, is in all entries either true or false).
I’ve tried different soultions like changing the route or the filter statement but nothing works. I thank you in advance for your help.