__construct()
__construct()
Merge two or more result sets.
NOTE that this only works on CEO result sets and will not function on compatibility models.
handle( $mergable, $key, $direction = -1) : mixed
Fetch some [dehydrated](https://stackoverflow.com/questions/6991135/what-does-it-mean-to-hydrate-an-object) data.
{%
set hp = fetch('article')
.wherePublished()
.limit(10)
.findByTags(['homepage'])
%}
{%
set sports = fetch('article')
.wherePublished()
.limit(10)
.findByTags(['sports'])
%}
{% set items = merge([hp, sports], 'published_at') %}
{% for item in items %}
{{ macros.rssItem(item) }}
{% endfor %}
| $mergable | ||
| $key | ||
| $direction |