The following code is producing an Unsupported operator types error:
$data = $modelData + array_merge($data, $recordData);
What the issue is, though, is that $modelData, $data, and $recordData are all arrays. The contents can be found here: http://bin.cakephp.org/view/1477154570
So I have to wonder if there are limitations to using + operator or some other underlying issue.
Edit: Exact php version: PHP 5.3.10 on Win 7 64-bit
you are trying to merge 2 arrays and then do union with third one.
Looks ok to me. Please let me know if I am missing anything.
here is the tried code with your given data.
http://codepad.org/hA654cQE