@@ -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
@@ -140,15 +136,13 @@ It can be used to:
140136
141137:ref: `Form Events Information Table<component-form-event-table> `
142138
143- +-----------------+------------------------------------------+
144- | Data type| Value|
145- +=================+==========================================+
146- | Model data| Same as in ``FormEvents::POST_SET_DATA ``|
147- +-----------------+------------------------------------------+
148- | Normalized data| Same as in ``FormEvents::POST_SET_DATA ``|
149- +-----------------+------------------------------------------+
150- | View data| Same as in ``FormEvents::POST_SET_DATA ``|
151- +-----------------+------------------------------------------+
139+ =============== ========================================
140+ Data Type Value
141+ =============== ========================================
142+ Model data Same as in ``FormEvents::POST_SET_DATA ``
143+ Normalized data Same as in ``FormEvents::POST_SET_DATA ``
144+ View data Same as in ``FormEvents::POST_SET_DATA ``
145+ =============== ========================================
152146
153147..sidebar ::``FormEvents::PRE_SUBMIT`` in the Form component
154148
@@ -170,15 +164,13 @@ It can be used to change data from the normalized representation of the data.
170164
171165:ref: `Form Events Information Table<component-form-event-table> `
172166
173- +-----------------+-------------------------------------------------------------------------------------+
174- | Data type| Value|
175- +=================+=====================================================================================+
176- | Model data| Same as in ``FormEvents::POST_SET_DATA ``|
177- +-----------------+-------------------------------------------------------------------------------------+
178- | Normalized data| Data from the request reverse-transformed from the request using a view transformer|
179- +-----------------+-------------------------------------------------------------------------------------+
180- | View data| Same as in ``FormEvents::POST_SET_DATA ``|
181- +-----------------+-------------------------------------------------------------------------------------+
167+ =============== ===================================================================================
168+ Data Type Value
169+ =============== ===================================================================================
170+ Model data Same as in ``FormEvents::POST_SET_DATA ``
171+ Normalized data Data from the request reverse-transformed from the request using a view transformer
172+ View data Same as in ``FormEvents::POST_SET_DATA ``
173+ =============== ===================================================================================
182174
183175..caution ::
184176
@@ -202,15 +194,13 @@ It can be used to fetch data after denormalization.
202194
203195:ref: `Form Events Information Table<component-form-event-table> `
204196
205- +-----------------+---------------------------------------------------------------+
206- | Data type| Value|
207- +=================+===============================================================+
208- | Model data| Normalized data reverse-transformed using a model transformer|
209- +-----------------+---------------------------------------------------------------+
210- | Normalized data| Same as in ``FormEvents::POST_SUBMIT ``|
211- +-----------------+---------------------------------------------------------------+
212- | View data| Normalized data transformed using a view transformer|
213- +-----------------+---------------------------------------------------------------+
197+ =============== =============================================================
198+ Data Type Value
199+ =============== =============================================================
200+ Model data Normalized data reverse-transformed using a model transformer
201+ Normalized data Same as in ``FormEvents::POST_SUBMIT ``
202+ View data Normalized data transformed using a view transformer
203+ =============== =============================================================
214204
215205..caution ::
216206
@@ -242,19 +232,15 @@ processed.
242232
243233.. _component-form-event-table :
244234
245- +------------------------+-------------------------------+------------------+
246- | Name| ``FormEvents `` Constant| Event's data|
247- +========================+===============================+==================+
248- | ``form.pre_set_data ``| ``FormEvents::PRE_SET_DATA ``| Model data|
249- +------------------------+-------------------------------+------------------+
250- | ``form.post_set_data ``| ``FormEvents::POST_SET_DATA ``| Model data|
251- +------------------------+-------------------------------+------------------+
252- | ``form.pre_bind ``| ``FormEvents::PRE_SUBMIT ``| Request data|
253- +------------------------+-------------------------------+------------------+
254- | ``form.bind ``| ``FormEvents::SUBMIT ``| Normalized data|
255- +------------------------+-------------------------------+------------------+
256- | ``form.post_bind ``| ``FormEvents::POST_SUBMIT ``| View data|
257- +------------------------+-------------------------------+------------------+
235+ ====================== ============================= ===============
236+ Name ``FormEvents `` Constant Event's Data
237+ ====================== ============================= ===============
238+ ``form.pre_set_data `` ``FormEvents::PRE_SET_DATA `` Model data
239+ ``form.post_set_data `` ``FormEvents::POST_SET_DATA `` Model data
240+ ``form.pre_bind `` ``FormEvents::PRE_SUBMIT `` Request data
241+ ``form.bind `` ``FormEvents::SUBMIT `` Normalized data
242+ ``form.post_bind `` ``FormEvents::POST_SUBMIT `` View data
243+ ====================== ============================= ===============
258244
259245..versionadded ::2.3
260246 Before Symfony 2.3, ``FormEvents::PRE_SUBMIT ``, ``FormEvents::SUBMIT ``