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.getOtherModel() Order By?

Is there a way to do an orderBy here:

user.getUserMeta()

//Something like:
user.getUserMeta(['order' => 'id ASC']);


98.9k

Yes, that must work, isn't it?

Hi there! the syntax you want to use is:

user.getUserMeta(['order': 'id ASC']);