EasyCorp / EasyAdminBundle

EasyAdmin is a fast, beautiful and modern admin generator for Symfony applications.
MIT License
4.06k stars 1.02k forks source link

Unable to edit/create entries with associations #4754

Open alexgit2k opened 2 years ago

alexgit2k commented 2 years ago

Describe the bug When entities with associations are used, for example many pupils to one school, it is not possible to administrate the entries with the association:

To Reproduce

symfony new application --full
cd application

symfony console make:entity School
name, string, 255, no

symfony console make:entity Pupil
school, ManyToOne, School, no, yes, pupils, yes
firstname, string, 255, no
surname, string, 255, no

symfony console make:migration
symfony console doctrine:migrations:migrate

symfony composer req admin
symfony console make:admin:dashboard
symfony console make:admin:crud # App\Entity\School
symfony console make:admin:crud # App\Entity\Pupil

(OPTIONAL) Additional context Associations in both directions have been correctly set by make:entity:

carherco commented 2 years ago

+1