Нумерация страниц не работает при попытке сделать объединение в cakephp 3
$tenant = $this->Tenants->find('all', [
'fields' => ['Tenants.id','Tenants.created','Consumers.type'],'conditions'=>['Tenants.clientid' => '1'],'order' => 'Tenants.created desc'])->contain(['Consumers'])
;
$buyer = $this->Buyers->find('all', [
'fields' => ['Buyers.id','Buyers.created','Consumers.type'],'conditions'=>['Buyers.clientid' => '1'],'order' => 'Buyers.created desc'])->contain(['Consumers'])
;
$results = $buyer->unionAll($tenant);
$results = $results->epilog(
$con->newQuery()->order(['created' => 'DESC'])
);
$results=$this->paginate($results);