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

How work getHasManyRecords ?

Hi. I found method getHasManyRecords in Phalcon\Mvc\Model\Manager. But I can't understand how it work, what is "string $method"? May be anybody can show example ?



98.9k

This method is not intended to obtain related records from a model, check the relationships chapter in the docs: https://docs.phalcon.io/en/latest/reference/models.html#relationships-between-models