You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will generate a filter for the Payment methods in my System. However, since the translations on those entity are lazy loaded, this means that if I have a couple of payment methods, it will lazy load the translations. This can be proven by not using a translatable attribute as a label but something like code.
Possible solutions
My idea would be to add a join in the QueryBuilder for the EntityType if the loaded entity implements the Sylius\Component\Resource\Model\TranslatableInterface. This however does not seem to have any effect on the loading of the label
The text was updated successfully, but these errors were encountered:
The current state
Currently if I want to use the EntityFilter with a translatable entity I would create a configuration like so:
This will generate a filter for the Payment methods in my System. However, since the translations on those entity are lazy loaded, this means that if I have a couple of payment methods, it will lazy load the translations. This can be proven by not using a translatable attribute as a label but something like
code
.Possible solutions
My idea would be to add a join in the QueryBuilder for the
EntityType
if the loaded entity implements theSylius\Component\Resource\Model\TranslatableInterface
. This however does not seem to have any effect on the loading of the labelThe text was updated successfully, but these errors were encountered: