I have an entity that I have deserialized using JMSSerializer. One of the related elements is an ArrayCollection, which has no entries in it when the parent is originally created.
The relationship is as follows
In assembly> there are many> HistoryEntries
When I try to combine a deserialized Assembly object where HistoryEntries is an empty ArrayCollection, I get the following error
The given entity of type 'XES\\MpmBundle\\Entity\\History' (unassigned) has no identity/no id values set. It cannot be added to the identity map.
How can I combine and save an object in which one or more relations do not have related objects?
Quint source share