Hi,
I have this case:
- TermA with custom field relation to NodeA and NodeB
- NodeA with custom field relation to TermA
- NodeB with custom field relation to TermA
No problem in exporting those, but the import process hangs at this step
[bootstrap] Starting bootstrap to none [2.34 sec, 34.34 MB]
[bootstrap] Drush bootstrap phase 0 [2.34 sec, 34.34 MB]
[bootstrap] Try to validate bootstrap phase 0 [2.34 sec, 34.34 MB]
If I break the circular relation (e.g. remove the relation from NodeA and NodeB to TermA but leave the others in place) all work correctly.
Before refactoring the structure of my site to avoid these circular dependencies, any idea on how to solve?
Thanks
Comments
Comment #2
miroslav-lee@simoneb this is a logical error.
During import, it is important that the entities that the current entity depends on are imported first, and then the current entity is imported.
In your case, it is not clear what should be loaded first, Term or Node. This is why recursion occurs.
If you want, we can discuss it on our Slack channel. This way it will be faster and easier
Comment #3
simoneb commentedThanks, I supposed so. I think there's no solution but to refactor my logic so to not have circular references.