Skip to content

Commit dbc4157

Browse files
committed
Merge branch '3.4' into 4.2
* 3.4: Replaces ProtocolClassValidator for the second example clarify some DateTimeType widget options
2 parents d373c19 + 6ca04ad commit dbc4157

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

reference/forms/types/datetime.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ Defines the ``format`` option that will be passed down to the date field.
7272
See the :ref:`DateType's format option <reference-forms-type-date-format>`
7373
for more details.
7474

75+
The ``date_format`` option does not have any effect when the form is rendered
76+
as an HTML5 datetime input.
77+
7578
date_label
7679
~~~~~~~~~~
7780

@@ -91,6 +94,8 @@ date_widget
9194

9295
.. include:: /reference/forms/types/options/date_widget_description.rst.inc
9396

97+
The ``date_widget`` option is ignored when the ``widget`` option is set to ``single_text``.
98+
9499
.. include:: /reference/forms/types/options/days.rst.inc
95100

96101
placeholder
@@ -184,6 +189,8 @@ time_widget
184189

185190
Defines the ``widget`` option for the :doc:`TimeType </reference/forms/types/time>`.
186191

192+
The ``time_widget`` option is ignored when the ``widget`` option is set to ``single_text``.
193+
187194
.. include:: /reference/forms/types/options/view_timezone.rst.inc
188195

189196
widget

validation/custom_constraint.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ not to the property:
219219
.. code-block:: php-annotations
220220
221221
/**
222-
* @AcmeAssert\ContainsAlphanumeric
222+
* @AcmeAssert\ProtocolClassValidator
223223
*/
224224
class AcmeEntity
225225
{
@@ -231,11 +231,11 @@ not to the property:
231231
# config/validator/validation.yaml
232232
App\Entity\AcmeEntity:
233233
constraints:
234-
- App\Validator\Constraints\ContainsAlphanumeric: ~
234+
- App\Validator\Constraints\ProtocolClassValidator: ~
235235
236236
.. code-block:: xml
237237
238238
<!-- config/validator/validation.xml -->
239239
<class name="App\Entity\AcmeEntity">
240-
<constraint name="App\Validator\Constraints\ContainsAlphanumeric" />
240+
<constraint name="App\Validator\Constraints\ProtocolClassValidator" />
241241
</class>

0 commit comments

Comments
 (0)