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

About model namespace aliases

Can we use Manager::namespaceRegisterAlias in initialize method of our models to registerNamespace aliases ?

Also are those aliases are working in hasMany, belgonsTo etc methods ?

Just didn't ever used it, but im doing some refractoring and thinking about using them.

Well already checked. We cant use them in hasMany etc methods.

No, it won't work in setting up relations.

I'm using ModelName::class, makes it shorter ;]

edited Apr '16

Once this will be merged then it will work https://github.com/phalcon/cphalcon/pull/11651