Skip to content

Commit 37c86d6

Browse files
committed
Merge branch '2.3'
2 parents 030a6f8 + 4557fee commit 37c86d6

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

cookbook/form/inherit_data_option.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Let's build two forms for these entities, ``CompanyType`` and ``CustomerType``::
8484
}
8585
8686
Instead of including the duplicated fields ``address``, ``zipcode``, ``city``
87-
and ``country``in both of these forms, we will create a third form for that.
87+
and ``country`` in both of these forms, we will create a third form for that.
8888
We will call this form simply ``LocationType``::
8989

9090
// src/Acme/HelloBundle/Form/Type/LocationType.php

reference/forms/types/options/empty_value.rst.inc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ empty_value
33

44
**type**: ``string`` or ``Boolean``
55

6+
.. versionadded:: 2.3
7+
Since Symfony 2.3, empty values are also supported if the ``expanded``
8+
option is set to true.
9+
610
This option determines whether or not a special "empty" option (e.g. "Choose an option")
7-
will appear at the top of a select widget. This option only applies if both
8-
the ``expanded`` and ``multiple`` options are set to false.
11+
will appear at the top of a select widget. This option only applies if the
12+
``multiple`` option is set to false.
913

1014
* Add an empty value with "Choose an option" as the text::
1115

@@ -26,4 +30,4 @@ is false::
2630
// a blank (with no text) option will be added
2731
$builder->add('states', 'choice', array(
2832
'required' => false,
29-
));
33+
));

reference/twig_reference.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ Filters
134134
Tags
135135
----
136136

137+
.. versionadded:: 2.3
138+
The stopwatch tag was added in Symfony 2.3
139+
137140
+---------------------------------------------------+--------------------------------------------------------------------+
138141
| Tag Syntax | Usage |
139142
+===================================================+====================================================================+
@@ -150,6 +153,9 @@ Tags
150153
| ``{% trans_default_domain language %}`` | This will set the default domain for message catalogues in the |
151154
| | current template |
152155
+---------------------------------------------------+--------------------------------------------------------------------+
156+
| ``{% stopwatch name %}...{% endstopwatch %}`` | This will time the run time of the code inside it and put that on |
157+
| | the timeline of the profiler. |
158+
+---------------------------------------------------+--------------------------------------------------------------------+
153159

154160
Tests
155161
-----

0 commit comments

Comments
 (0)