K
K
Konstantin Zhikhor2019-05-08 23:32:31
symfony
Konstantin Zhikhor, 2019-05-08 23:32:31

How to connect forms in Symfony 4?

Throws an error 'Catchable Fatal Error: Object of class App\Entity\User could not be converted to string'
did everything as written at https://symfony.com/doc/current/form/embedded.html
Please do not describe the error . Tell me, please, how to solve it?
https://github.com/Kshevchenko94/resume.dev _

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-05-09
@Minifets

In your class \App\Form\ProfileType, a field is added that is superfluous in this form. Namely user_id. Remove it and you will be happy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question