Skip to content

Conversation

stollr
Copy link

@stollr stollr commented Jun 18, 2025

This addition to the documentation helps to prevent for running into the issue #1021.

This is the issue in short:
If query caching is enabled the TranslationWalker won't be used anymore once the query is cached. Therefore the Query::HINT_REFRESH, which is normally set by the TranslationWalker, won't be set automatically.
This leads to the issue, that once a translatable entity is loaded a second query with another locale won't update the translatable properties in the entity.

Adding the Query::HINT_REFRESH manually to the query will fix the issue.

…latable (doctrine-extensions#1021)

If query caching is enabled the TranslationWalker won't be used anymore once the query is cached. Therefore the `Query::HINT_REFRESH` won't be set automatically. This leads to the issue, that once a translateable entity is loaded a second query with another locale won't update the translateable properties in the entity.

Adding the `Query::HINT_REFRESH` manually to the query will fix the issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant