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
I have a problem in my project in Symfony 5.4 with the TranslatableEventSubscriber
One of my entities "Page" isn't load in the loadClassMetadata event on the TranslatableEventSubscriber class, so it don't have the translations loaded by the metadata infos.
For example, if i debug all the classes which had been load in the TranslatableEventSubscriber (capture down), my class isn't displayed on the dump.
If i debug the class in the dispatchEvent function doLoadMetadata from the ClassMetadaFactory, my class is displayed
Someone have got any idea about the problem ?
If i create a custom PageEventSubscriber and implements the Events::loadClassMetadata, my entity is correctly display and i can override his metadata. So to fix the bug i just dupplicate the TranslatableEventSubscriber code in my PageEventSubscriber but it's not very clearly.
The header of my class :
Thank you for your futurs answers
Julien
The text was updated successfully, but these errors were encountered:
jbrat
changed the title
Problem TranslatableEventSubscriber , events loadClassMetadata
Problem TranslatableEventSubscriber , event loadClassMetadata
Apr 5, 2023
\Knp\DoctrineBehaviors\EventSubscriber\TranslatableEventSubscriber::loadClassMetadata() method is not called, subsriber is - same issue described here KnpLabs/DoctrineBehaviors#729
Hello,
I have a problem in my project in Symfony 5.4 with the TranslatableEventSubscriber
One of my entities "Page" isn't load in the loadClassMetadata event on the TranslatableEventSubscriber class, so it don't have the translations loaded by the metadata infos.
For example, if i debug all the classes which had been load in the TranslatableEventSubscriber (capture down), my class isn't displayed on the dump.
If i debug the class in the dispatchEvent function doLoadMetadata from the ClassMetadaFactory, my class is displayed
Someone have got any idea about the problem ?
If i create a custom PageEventSubscriber and implements the Events::loadClassMetadata, my entity is correctly display and i can override his metadata. So to fix the bug i just dupplicate the TranslatableEventSubscriber code in my PageEventSubscriber but it's not very clearly.
The header of my class :
Thank you for your futurs answers
Julien
The text was updated successfully, but these errors were encountered: