I have a setup almost identical to the exmaple under: https://docs.phalcon.io/en/latest/reference/models.html#defining-relationships, but instead I am using "Companies", "CompanyEmployees", "Employees" where an Employee can be related only to one Company.
How can I get all employees in a company using a magic getter in the Companies model? I can only retrieve the CompanyEmployees records, but not the Employees.It is the same as the example in the ref above, where $robot->getRobotsParts(); would work but $robot->getParts(); does not.
Is it supposed to work that way at all or am I missing something else in setting up the relationships?