I'm trying to import data from custom source through Migrate in Drupal 8. The problem is that I need to process data which have references to each other. This is excerpt from my migration
field_recommended_articles: - plugin: string_in_array key: id source: recommended_articles - plugin: migration_lookup migration: articles source: id
This seems to lead to recursion, because following error appears with stack trace containing repeating calls to respective migrate-related methods.
PHP Fatal error: Maximum function nesting level of '2000' reached, aborting! in .../core/lib/Drupal/Core/Database/Statement.php on line 153
How can I solve this?
The recursion was caused by xdebug. Without it, there is a reference value created, but each value references the same content.