Open devbieres opened 4 years ago
For information, I have try to use a EntityType for this field :
->add('translations', TranslationsType::class, [
'fields' => [
'label' => [ 'field_type' => TextType::class],
'description' => [ 'field_type' => TextareaType::class],
'solutionImages' => [
'field_type' => EntityType::class,
'class' => SolutionImages::class
]
]
])
But it raised an error :
An error has occurred resolving the options of the form "Symfony\Bridge\Doctrine\Form\Type\EntityType": The options "allow_add", "entry_options", "entry_type" do not exist.
Hi,
I have a main entity with a translation. In the Translation Entity, there is a relation OneToMany with another entity. Several translated entities may be associated with same relation entities:
When rendering the form, there is no field for this relation.
Here is the definition of the relation :
In the main entity type, I simply add
Thanks for your help.
Environment
Composer packages
PHP version
Subject
->add('translations', TranslationsType::class)
Steps to reproduce
Expected results
For the relation entity have a select field.
Actual results
No field.