Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitda5762a

Browse files
committed
minor#21027 [Form] Addinput=date_point toDateTimeType,DateType andTimeType (wkania)
This PR was merged into the 7.4 branch.Discussion----------[Form] Add `input=date_point` to `DateTimeType`, `DateType` and `TimeType`Fix#21022```use Symfony\Component\Form\Extension\Core\Type\DateType;use Symfony\Component\Form\Extension\Core\Type\DateTimeType;use Symfony\Component\Form\Extension\Core\Type\TimeType;use Symfony\Component\Form\Extension\Core\Type\BirthdayType;$builder->add('from', DateType::class, [ 'input' => 'date_point',]);$builder->add('from', DateTimeType::class, [ 'input' => 'date_point',]);$builder->add('from', TimeType::class, [ 'input' => 'date_point',]);$builder->add('from', BirthdayType::class, [ 'input' => 'date_point',]);Commits-------6156dcf [Form] Add input=date_point to DateTimeType, DateType and TimeType
2 parentse9380a0 +6156dcf commitda5762a

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

‎reference/forms/types/datetime.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ on your underlying object. Valid values are:
110110
* ``string`` (e.g. ``2011-06-05 12:15:00``)
111111
* ``datetime`` (a ``DateTime`` object)
112112
* ``datetime_immutable`` (a ``DateTimeImmutable`` object)
113+
* ``date_point`` (a ``DatePoint`` object)
113114
* ``array`` (e.g. ``[2011, 06, 05, 12, 15, 0]``)
114115
* ``timestamp`` (e.g. ``1307276100``)
115116

‎reference/forms/types/options/date_input.rst.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on your underlying object. Valid values are:
99
* ``string`` (e.g. ``2011-06-05``)
1010
* ``datetime`` (a ``DateTime`` object)
1111
* ``datetime_immutable`` (a ``DateTimeImmutable`` object)
12+
* ``date_point`` (a ``DatePoint`` object)
1213
* ``array`` (e.g. ``['year' =>2011,'month' =>06,'day' =>05]``)
1314
* ``timestamp`` (e.g. ``1307232000``)
1415

‎reference/forms/types/time.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ on your underlying object. Valid values are:
9999
* ``string`` (e.g. ``12:17:26``)
100100
* ``datetime`` (a ``DateTime`` object)
101101
* ``datetime_immutable`` (a ``DateTimeImmutable`` object)
102+
* ``date_point`` (a ``DatePoint`` object)
102103
* ``array`` (e.g. ``['hour' => 12, 'minute' => 17, 'second' => 26]``)
103104
* ``timestamp`` (e.g. ``1307232000``)
104105

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp