We've created a very simple article bundle based on the ContentBundle. So far it works great! Persisting new and existing entities in the database works fine. But indexing an entity fails due to an "array to string conversion".
After some debugging and hints from Alex in Slack, we've found that <tag name="sulu.search.field" role="image"/> seems to be the culprit. Removing this line will result in a successful indexing.
Related note: Using <tag name="sulu.search.field" role="image"/> with a content element on pages works fine.
Expected behavior
Entity is successfully persisted and indexed.
Actual behavior
Entity is successfully persisted in the database but indexing fails with the following exception:
We've created a very simple article bundle based on the ContentBundle. So far it works great! Persisting new and existing entities in the database works fine. But indexing an entity fails due to an "array to string conversion".
After some debugging and hints from Alex in Slack, we've found that
<tag name="sulu.search.field" role="image"/>
seems to be the culprit. Removing this line will result in a successful indexing.Related note: Using
<tag name="sulu.search.field" role="image"/>
with a content element onpages
works fine.Expected behavior
Entity is successfully persisted and indexed.
Actual behavior
Entity is successfully persisted in the database but indexing fails with the following exception:
Example
Here is our template example: