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

Missing method hasManyThrough

Today i just upgraded my phalconphp installation to latest version (1.2.0) . I am suprised that my application become broken after upgrading.

The Error is like this:

The method "hasManyThrough" doesn't exist on model "Player"

Apparantly, the method hasManyThrough() in Phalcon\Mvc\Model has been removed.

It is bug? I don't see any mention about removal of hasManyThrough() in https://github.com/phalcon/cphalcon/blob/1.2.0/CHANGELOG



404

This method never worked, as i know, but maybe i'm mistaken.

In 1.2.0 there is hasManyToMany method to define n-n relationship between models. https://docs.phalcon.io/en/latest/reference/models.html#defining-relationships