From d42bfc007f744a75c0722253fe29a619d30ab59b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandru=20Furculita=20=E2=99=BB?= Date: Fri, 4 Aug 2017 23:19:00 +0300 Subject: [PATCH] Update events.rst There is no more a `collection` form type, but a `Symfony\Component\Form\Extension\Core\Type\CollectionType` one. --- form/events.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/form/events.rst b/form/events.rst index 9696b4b9833..b33ca43a4d4 100644 --- a/form/events.rst +++ b/form/events.rst @@ -84,8 +84,8 @@ View data ``null`` .. sidebar:: ``FormEvents::PRE_SET_DATA`` in the Form component - The ``collection`` form type relies on the - ``Symfony\Component\Form\Extension\Core\EventListener\ResizeFormListener`` + The ``Symfony\Component\Form\Extension\Core\Type\CollectionType`` form type relies + on the ``Symfony\Component\Form\Extension\Core\EventListener\ResizeFormListener`` subscriber, listening to the ``FormEvents::PRE_SET_DATA`` event in order to reorder the form's fields depending on the data from the pre-populated object, by removing and adding all form rows.