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

Does hasManyToMany relation need an alias?

I'm trying to setup a hasManyToMany relation with Phalcon models. It only seems to work when I setup an alias for the relation. If I don't set one, I can't manage to make it work! Is setting an alias mandatory for a hasManyToMany relation between models?

Its possible, cuz you need in phalcon intermediate model, you dont really select field from current model where records should be mapped, you set it in alias.