- Issue created by @Andrei Haurukovich
- Merge request !1Fix issue releted to recursion in related fields → (Open) created by Andrei Haurukovich
- Status changed to Needs review
10 months ago 12:14pm 8 March 2024
In some cases, we can get a recursion. For example, we have 2 pagebuilder entities, which have pagebuilder fields with related content. In related content, we have references to each other. For example:
node/1->node/2 and node/2->node/1.
We have a set of fields e.g. from node(64). Most of them are handled by apachesolr_entityreference_content_indexing_callback, except field field_page_builder(node). It is handled by apachesolr_paragraphs_add_paragraph_fields, which calls all fields(32) from Paragraph. In this set of fields, we have field_related_content that is handled by apachesolr_entityreference_content_indexing_callback again. As a result, we have some kind of recursion.
Create 2 entities, that have reference to each other in related fields. For example node/1->node/2 and node/2->node/1 More details above.
I would suggest to handle it by adding a static variable.
Needs review
1.0
Code