Hallo Zusammen,
ich bekomme bei einem Test-Shop eine Fehlermeldung wenn ich über die API die Kategoriedaten ändern möchte.
Es trifft Kategorien, die eine Einkaufswelt haben.
Die Meldung:
Expected value of type "Doctrine\Common\Collections\Collection|array" for association field "Shopware\Models\Category\Category#$emotions", got "array" instead.
Das Array was ich übergebe, ist das was ich von der API gemeldet bekomme, wo ich eigentlich nur Beschreibungen, Attr, etc. abändere. Es werden keine keys hinzugefügt.
(
[id] => 3
[parentId] => 1
[streamId] =>
[name] => Deutsch
[position] => 0
[metaTitle] =>
[metaKeywords] =>
[metaDescription] =>
[cmsHeadline] =>
[cmsText] =>
[active] => 1
[template] =>
[productBoxLayout] =>
[blog] => 0
[path] =>
[external] =>
[hideFilter] => 0
[hideTop] => 0
[changed] => 2014-11-06T19:24:16+0100
[added] => 2014-11-06T19:24:16+0100
[mediaId] =>
[attribute] => Array
(
[id] => 19
[categoryId] => 3
[attribute1] =>
[attribute2] =>
[attribute3] =>
[attribute4] =>
[attribute5] =>
[attribute6] =>
[coeGoogleProductCategory] =>
[coeGoogleProductTyp] =>
[sixSeoUrl] =>
)
[emotions] => Array
(
[0] => Array
(
[id] => 1
[parentId] =>
[active] => 1
[name] => Startseite
[userId] => 52
[position] => 1
[device] => 0,1,2,3,4
[fullscreen] => 0
[validFrom] => 2016-04-18T00:00:00+0200
[isLandingPage] => 0
[seoTitle] =>
[seoKeywords] =>
[seoDescription] =>
[validTo] =>
[createDate] => 2014-07-01T22:02:52+0200
[modified] => 2016-11-07T09:19:40+0100
[rows] => 23
[cols] => 4
[cellSpacing] => 10
[cellHeight] => 185
[articleHeight] => 2
[showListing] =>
[templateId] => 1
[mode] => resize
)
)
[media] =>
[customerGroups] => Array
(
)
[0] => Array
(
[id] => 3
[parentId] => 1
[streamId] =>
[name] => Deutsch
[position] =>
[metaTitle] =>
[metaKeywords] =>
[metaDescription] =>
[cmsHeadline] =>
[cmsText] =>
[active] => 1
[template] =>
[productBoxLayout] =>
[blog] => 1
[path] =>
[external] =>
[hideFilter] =>
[hideTop] =>
[changed] => 2014-11-06T19:24:16+0100
[added] => 2014-11-06T19:24:16+0100
[mediaId] =>
[attribute] => Array
(
[id] => 19
[categoryId] => 3
[attribute1] =>
[attribute2] =>
[attribute3] =>
[attribute4] =>
[attribute5] =>
[attribute6] =>
[coeGoogleProductCategory] =>
[coeGoogleProductTyp] =>
[sixSeoUrl] =>
)
[emotions] => Array
(
[0] => Array
(
[id] => 1
[parentId] =>
[active] => 1
[name] => Startseite
[userId] => 52
[position] => 1
[device] => 0,1,2,3,4
[fullscreen] => 0
[validFrom] => 2016-04-18T00:00:00+0200
[isLandingPage] => 0
[seoTitle] =>
[seoKeywords] =>
[seoDescription] =>
[validTo] =>
[createDate] => 2014-07-01T22:02:52+0200
[modified] => 2016-11-07T09:19:40+0100
[rows] => 23
[cols] => 4
[cellSpacing] => 10
[cellHeight] => 185
[articleHeight] => 2
[showListing] =>
[templateId] => 1
[mode] => resize
)
)
[media] =>
[customerGroups] => Array
(
)
)
[childrenCount] => 11
[articleCount] => 4042
)
Hat jemand einen Tipp, womit dies zusammen hängt, bzw. wie man es beheben kann?
Beste Grüße