I'm trying to return a single GroupedList
which holds information from both pages and dataobjects
. Is there an easy way to merge the two lists together?
public function getGroupedContent()
{
$dataobjects = GroupedList::create(FileNetObject::get());
$pages = GroupedList::create($this->Children());
$result = ??;
return $result;
}
The ArrayList
merge fails as does a standard array_merge
- Would I be best merging the results from the queries together before putting it into a single GroupedList
?