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

Multiples joins with Phalcon

When I try to add more than one inner join in my query I have the following error:

Scanning error before '] JOIN [] JOIN [...' when parsing

Here's my code:

$query = myModelHere::query()

->innerJoin("Model1")

->innerJoin("Model2")

->limit(10)

->execute();

Someone had that problem?



58.4k

HI

You can checkout document here



3.2k
Accepted
answer

Please use 1.3.2, i've fixed this bug in a pull request that has been merged into 1.3.2:

https://github.com/phalcon/cphalcon/pull/2220