Example: Map (node) has unlimited areas (field collection field). Each area has unlimited layers (field collection field). The area fc. have normal fields and the layer fc. The layer fc. only have normal fields.
I can create a field collection on the node, but unable to figure out how to attach another field collection to it. I assume the 2nd fc. should use the 1st fc. id as HostEntity.
The code is running in a custom module, and it should create the Map node.
Any ideas, suggestions?