Answer the question
In order to leave comments, you need to log in
How to replace the entity photo?
When I add a company, I need to upload its logo:
I upload it like this:
AddCompanyType:
$builder->add('image', new FileType(), array('label' => 'Логотип'));
$builder->add('file', 'file', array('label' => false));
Answer the question
In order to leave comments, you need to log in
Well, in the controller, you can describe the logic for updating the entity, and not just automatically fill it with new data from the form.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question