- Issue created by @Andrei Haurukovich
- Status changed to Closed: cannot reproduce
10 months ago 11:43am 8 March 2024 - 🇧🇾Belarus Andrei Haurukovich Minsk
The issue was reproduced in another module. This was created my mistake
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.
Closed: cannot reproduce
1.0
Code
The issue was reproduced in another module. This was created my mistake