P
P
postgresdev2019-09-05 16:12:09
symfony
postgresdev, 2019-09-05 16:12:09

How to create a form within a form in Symfony?

How to save forms for Entity in Symfony that are connected via one to one? They should be displayed on the page as one form.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
postgresdev, 2019-09-05
@postgresdev

https://symfony.com/doc/current/form/embedded.html

E
Evgeny Romashkan, 2019-09-05
@EvgeniiR

1. Do not associate forms with Entity 1k1.
2. The official HTML/XHTML specification does not allow nested forms.
And in general - https://www.youtube.com/watch?v=WW2qPKukoZY

I
Igor Surname, 2019-09-15
@Morilon

The best option is DTO https://symfonycasts.com/screencast/symfony-forms/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question