Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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?



34.6k

HI

You can checkout document here



2.6k
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