File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ protected function buildDataDocument(Art4JsonApiDocumentInterface $jsonApiDocume
111
111
if ($ data instanceof ResourceCollectionInterface) {
112
112
$ collection = $ this ->hydrator ->hydrateCollection ($ jsonApiDocument ->get ('data ' ));
113
113
$ allHydratedItems = $ allHydratedItems ->concat ($ collection );
114
- $ allJsonApiItems = $ allJsonApiItems ->concat ($ jsonApiDocument ->get ('data ' )->asArray ());
114
+ $ allJsonApiItems = $ allJsonApiItems ->concat (new Collection ( $ jsonApiDocument ->get ('data ' )->asArray () ));
115
115
116
116
$ document = new CollectionDocument ();
117
117
$ document ->setData ($ collection );
@@ -130,7 +130,7 @@ protected function buildDataDocument(Art4JsonApiDocumentInterface $jsonApiDocume
130
130
if ($ includedInDocument ) {
131
131
$ included = $ this ->hydrator ->hydrateCollection ($ includedInDocument );
132
132
$ allHydratedItems = $ allHydratedItems ->concat ($ included );
133
- $ allJsonApiItems = $ allJsonApiItems ->concat ($ includedInDocument ->asArray ());
133
+ $ allJsonApiItems = $ allJsonApiItems ->concat (new Collection ( $ includedInDocument ->asArray () ));
134
134
}
135
135
136
136
$ this ->hydrator ->hydrateRelationships ($ allJsonApiItems , $ allHydratedItems );
You can’t perform that action at this time.
0 commit comments