#[ORM\Entity]
class AccordionVerticalWidget extends Widget implements TranslatableInterface
{
use TranslatableTrait;
private string $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.
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.