I have a controller where I want to combine data from multiple tables with parallel structures. What I want to end up with in the end is one object I can return from the contro
You could simply use array_merge(firstObject,secondObject) function.
array_merge(firstObject,secondObject)
$obj = array_merge($mc, $sm); return $obj;