Phalcon 2.1.0b | PHP 5.5.34 | MySQL 5.6
I got a strange error
Phalcon\Paginator\Adapter\QueryBuilder::getPaginate(): Invalid arguments supplied for fast_join() i
With code
$queryBuilder = $this->modelsManager->createBuilder();
$queryBuilder->from(ChangeAction::class);
$queryBuilder->groupBy(ChangeAction::class . '.changeActionId');
$queryBuilder->join(ChangeField::class, ChangeField::class .'.changeActionId = ' .
ChangeAction::class . '.changeActionId');
$queryBuilder->where(ChangeField::class . '.changeFieldId IS NOT NULL');
SELECT [Models\ChangeAction].* FROM [Models\ChangeAction] JOIN [Models\ChangeField] ON Models\ChangeField.changeActionId = Models\ChangeAction.changeActionId WHERE Models\ChangeField.changeFieldId IS NOT NULL GROUP BY Models\ChangeAction.changeActionId ORDER BY Models\ChangeAction.changeActionId DESC
Without groupBy it working properly
I'm using groupBy b/c disctinct method is not exists