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
#[ORM\Entity]
class AccordionVerticalWidget extends Widget implements TranslatableInterface
{
use TranslatableTrait;
privatestring$content;
...
}
The problem is that I have just a WidgetCrudController and not a controller for each WidgetType. Then, when I have a field that is only specified for the child and not in the parent, I can't get the auto-generated edit from using the form builder. Because it's said that the parent class (WidgetTranslation) doesn't have the attribute ($content) that I want to set in the child one (AccordionVerticalWidget) of the main class (Widget).
And the parent attributes can be translated, no problem for that.
The text was updated successfully, but these errors were encountered:
Subject
Is this bundle compatible with child entity that are extending a parent one ?
Like this is my parent class :
And here is my child class :
The problem is that I have just a WidgetCrudController and not a controller for each WidgetType. Then, when I have a field that is only specified for the child and not in the parent, I can't get the auto-generated edit from using the form builder. Because it's said that the parent class (
WidgetTranslation
) doesn't have the attribute ($content
) that I want to set in the child one (AccordionVerticalWidget
) of the main class (Widget
).And the parent attributes can be translated, no problem for that.
The text was updated successfully, but these errors were encountered: