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

Point me to the docs: options array for relation methods

Hello,

can someone point me to the docs where I can find the options that can be passed to methods like "hasOne", "hasMany", "belongsTo", etc.? I browsed the Phalcon source and found that an "alias" option is evaluated, then I found this https://github.com/phalcon/phalcon-devtools/issues/47 saying there is a "foreignKey" option. I just can not find it, neither in the docs not in the source.

By the way: Can someone enlighten me what the "foreignKey" option does? Is it used to create a new foreign key entry in the database or is it used to set some internal binding to resolve the relationships?

OK, forget it. I just found the sources.

Can you tell me where it is? I just search for it also :)