EasyAdmin 3 (Symfony) Is it possible to use one CRUD Controller for write to one table and write some data to another table?
Asked
Active
Viewed 3,370 times
0
-
A crud controller is bound to one entity, however your new/edit form could embed another one that would create another entity, thus creating different row in different table (Index page). – Dylan KAS Feb 18 '22 at 13:50
-
Thank you! But can I see somewhere example realisation this method? – Robokop Feb 18 '22 at 16:32
-
Just look into how you can create custom field using custom form type, it's just regular symfony form management – Dylan KAS Feb 18 '22 at 16:54
1 Answers
0
Your question is not really specific but you can override any CRUD action you want as cited in the documentation and persist data to other entities if you need to. https://symfony.com/doc/current/EasyAdminBundle/crud.html#customizing-crud-actions

Ahmed Ghiloubi
- 341
- 2
- 6