-
v1, Beta 4 Pre-Release
released this
2024-07-04 16:12:17 +00:00 | 16 commits to main since this releaseParameters::json
accepts either an object or an array for its value. In beta 3, an array was unaware of pjson annotations, so custom serialization functions were not called. In this release, if the document array has one entry, and that entry is an array of objects that supporttoJson()
(pjson's serialization function), these will now use the pjson-aware serialization.This change allows an array of custom items to be replaced using
Patch
and passing a single key array with these items. Example:Patch::byId('doc_table', 'abc123', ['items' => [$item1, $item2, $item3]]);
This also adds the flags passed to the non-pjson
json_encode
options to it as well (unescaped slashes and unicode).Downloads