CakePHP 3.x Merge Find Results

213 Views Asked by At

I am currently grabbing two result sets from two different tables with the same column structure.

Is it possible to do something like array_merge on these two sets of data and merge them into one set so that I can paginate the results in the view?

1

There are 1 best solutions below

0
Gaurav Neema On

One of the possible solutions is to use CakePHP's Hash class and combine function.

https://book.cakephp.org/3.0/en/core-libraries/hash.html