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 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:
[EN - FR - IT] --> RelationEntityA,
[DE - ES] --> RelationEntityB,
[...] --> ?
When rendering the form, there is no field for this relation.
$ composer show
a2lix/auto-form-bundle 0.3.1 Automate form building
a2lix/translation-form-bundle 3.0.7 Translate your doctrine objects easily with some helps
knplabs/doctrine-behaviors v2.0.4 Doctrine Behavior Traits
symfony/form v5.1.2 Symfony Form Component
symfony/framework-bundle v5.1.2 Symfony FrameworkBundle
PHP version
$ php -v
PHP 7.3.17-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Apr 19 2020 07:44:26) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.17, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.17-1+ubuntu18.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.9.3, Copyright (c) 2002-2020, by Derick Rethans
Subject
One entity implementing TranslatableInterface and using TranslatableTrait,
A translation entity implementing TranslationInterface and using TranslationTrait,
This entity has a relation OneToMany with a third entity which is not translated (a simple entity),
One basic form for the main entity containing ->add('translations', TranslationsType::class)
Steps to reproduce
Implementing the entities,
Show the form in a view.
Expected results
For the relation entity have a select field.
Actual results
No field.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: