Question

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?

Was it helpful?

Solution 2

It's a bug and was solved in 1.3.2 version

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

OTHER TIPS

You can try use PHQL

Anyway, report on GitHub...probably it's a bug

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top