We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Model, getRobotParts() wont work in namespace

Lets consider the "robots" scheme. It works very well, but I put them to namespaces. And now, the $robotsParts = $robot->getRobotsParts() wont work, no such method, not even $robotsParts = $robot->robotsParts;

That's where aliases play a part in bringing back the magical-ness of these methods.

https://docs.phalcon.io/en/latest/reference/models.html#aliasing-relationships