@@ -61,15 +61,13 @@ The ``FormEvents::PRE_SET_DATA`` event is dispatched at the beginning of the
6161
6262:ref: `Form Events Information Table<component-form-event-table> `
6363
64- +-----------------+-----------+
65- | Data type| Value|
66- +=================+===========+
67- | Model data| ``null ``|
68- +-----------------+-----------+
69- | Normalized data| ``null ``|
70- +-----------------+-----------+
71- | View data| ``null ``|
72- +-----------------+-----------+
64+ =============== ========
65+ Data Type Value
66+ =============== ========
67+ Model data ``null ``
68+ Normalized data ``null ``
69+ View data ``null ``
70+ =============== ========
7371
7472..caution ::
7573
@@ -98,15 +96,13 @@ the form.
9896
9997:ref: `Form Events Information Table<component-form-event-table> `
10098
101- +-----------------+------------------------------------------------------+
102- | Data type| Value|
103- +=================+======================================================+
104- | Model data| Model data injected into ``setData() ``|
105- +-----------------+------------------------------------------------------+
106- | Normalized data| Model data transformed using a model transformer|
107- +-----------------+------------------------------------------------------+
108- | View data| Normalized data transformed using a view transformer|
109- +-----------------+------------------------------------------------------+
99+ =============== ====================================================
100+ Data Type Value
101+ =============== ====================================================
102+ Model data Model data injected into ``setData() ``
103+ Normalized data Model data transformed using a model transformer
104+ View data Normalized data transformed using a view transformer
105+ =============== ====================================================
110106
111107..sidebar ::``FormEvents::POST_SET_DATA`` in the Form component
112108
@@ -143,15 +139,13 @@ It can be used to:
143139
144140:ref: `Form Events Information Table<component-form-event-table> `
145141
146- +-----------------+------------------------------------------+
147- | Data type| Value|
148- +=================+==========================================+
149- | Model data| Same as in ``FormEvents::POST_SET_DATA ``|
150- +-----------------+------------------------------------------+
151- | Normalized data| Same as in ``FormEvents::POST_SET_DATA ``|
152- +-----------------+------------------------------------------+
153- | View data| Same as in ``FormEvents::POST_SET_DATA ``|
154- +-----------------+------------------------------------------+
142+ =============== ========================================
143+ Data Type Value
144+ =============== ========================================
145+ Model data Same as in ``FormEvents::POST_SET_DATA ``
146+ Normalized data Same as in ``FormEvents::POST_SET_DATA ``
147+ View data Same as in ``FormEvents::POST_SET_DATA ``
148+ =============== ========================================
155149
156150..sidebar ::``FormEvents::PRE_SUBMIT`` in the Form component
157151
@@ -173,15 +167,13 @@ It can be used to change data from the normalized representation of the data.
173167
174168:ref: `Form Events Information Table<component-form-event-table> `
175169
176- +-----------------+-------------------------------------------------------------------------------------+
177- | Data type| Value|
178- +=================+=====================================================================================+
179- | Model data| Same as in ``FormEvents::POST_SET_DATA ``|
180- +-----------------+-------------------------------------------------------------------------------------+
181- | Normalized data| Data from the request reverse-transformed from the request using a view transformer|
182- +-----------------+-------------------------------------------------------------------------------------+
183- | View data| Same as in ``FormEvents::POST_SET_DATA ``|
184- +-----------------+-------------------------------------------------------------------------------------+
170+ =============== ===================================================================================
171+ Data Type Value
172+ =============== ===================================================================================
173+ Model data Same as in ``FormEvents::POST_SET_DATA ``
174+ Normalized data Data from the request reverse-transformed from the request using a view transformer
175+ View data Same as in ``FormEvents::POST_SET_DATA ``
176+ =============== ===================================================================================
185177
186178..caution ::
187179
@@ -205,15 +197,13 @@ It can be used to fetch data after denormalization.
205197
206198:ref: `Form Events Information Table<component-form-event-table> `
207199
208- +-----------------+---------------------------------------------------------------+
209- | Data type| Value|
210- +=================+===============================================================+
211- | Model data| Normalized data reverse-transformed using a model transformer|
212- +-----------------+---------------------------------------------------------------+
213- | Normalized data| Same as in ``FormEvents::POST_SUBMIT ``|
214- +-----------------+---------------------------------------------------------------+
215- | View data| Normalized data transformed using a view transformer|
216- +-----------------+---------------------------------------------------------------+
200+ =============== =============================================================
201+ Data Type Value
202+ =============== =============================================================
203+ Model data Normalized data reverse-transformed using a model transformer
204+ Normalized data Same as in ``FormEvents::POST_SUBMIT ``
205+ View data Normalized data transformed using a view transformer
206+ =============== =============================================================
217207
218208..caution ::
219209
@@ -248,19 +238,15 @@ processed.
248238
249239.. _component-form-event-table :
250240
251- +------------------------+-------------------------------+------------------+
252- | Name| ``FormEvents `` Constant| Event's data|
253- +========================+===============================+==================+
254- | ``form.pre_set_data ``| ``FormEvents::PRE_SET_DATA ``| Model data|
255- +------------------------+-------------------------------+------------------+
256- | ``form.post_set_data ``| ``FormEvents::POST_SET_DATA ``| Model data|
257- +------------------------+-------------------------------+------------------+
258- | ``form.pre_bind ``| ``FormEvents::PRE_SUBMIT ``| Request data|
259- +------------------------+-------------------------------+------------------+
260- | ``form.bind ``| ``FormEvents::SUBMIT ``| Normalized data|
261- +------------------------+-------------------------------+------------------+
262- | ``form.post_bind ``| ``FormEvents::POST_SUBMIT ``| View data|
263- +------------------------+-------------------------------+------------------+
241+ ====================== ============================= ===============
242+ Name ``FormEvents `` Constant Event's Data
243+ ====================== ============================= ===============
244+ ``form.pre_set_data `` ``FormEvents::PRE_SET_DATA `` Model data
245+ ``form.post_set_data `` ``FormEvents::POST_SET_DATA `` Model data
246+ ``form.pre_bind `` ``FormEvents::PRE_SUBMIT `` Request data
247+ ``form.bind `` ``FormEvents::SUBMIT `` Normalized data
248+ ``form.post_bind `` ``FormEvents::POST_SUBMIT `` View data
249+ ====================== ============================= ===============
264250
265251..versionadded ::2.3
266252 Before Symfony 2.3, ``FormEvents::PRE_SUBMIT ``, ``FormEvents::SUBMIT ``