A
A
Alexander2016-11-03 00:14:28
symfony
Alexander, 2016-11-03 00:14:28

How to edit data using EntityType?

The people didn’t find an answer, although I dug
something for a long time, I’m probably doing something wrong
How can I edit the data in the form using EntityType
to create it turns out fine

->add('trip', EntityType::class, array(
                'class' => 'AppBundle\Entity\Trip',
                'choice_label' => 'tripTitle',
            ))

but how to edit?
resets by default all fields in the given select

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fractal Zombie, 2016-11-03
@FractalZombie

More? What does edit mean?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question