From 7c3761fad7ab4f92bd31839194bf581400eddf2c Mon Sep 17 00:00:00 2001 From: Michael Lenahan Date: Sat, 8 Apr 2017 15:30:36 +0200 Subject: [PATCH 1/3] #7311 choice_value callback argument can be null --- reference/forms/types/options/choice_value.rst.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reference/forms/types/options/choice_value.rst.inc b/reference/forms/types/options/choice_value.rst.inc index f56a000ed9f..adaa022e215 100644 --- a/reference/forms/types/options/choice_value.rst.inc +++ b/reference/forms/types/options/choice_value.rst.inc @@ -11,6 +11,9 @@ configure the value that will be sent in the API request). This can be a callable or a property path. See `choice_label`_ for similar usage. If ``null`` is used, an incrementing integer is used as the name. +If you are using a callable to populate choice_value, you need to check for the +case that the value of the field may be null. + .. caution:: In Symfony 2.7, there was a small backwards-compatibility break with how the From c7ad1bc9ea9c426ac2bada28f8e1eb86675cf4dc Mon Sep 17 00:00:00 2001 From: Michael Lenahan Date: Thu, 13 Apr 2017 13:50:56 +0200 Subject: [PATCH 2/3] Use backticks --- reference/forms/types/options/choice_value.rst.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/forms/types/options/choice_value.rst.inc b/reference/forms/types/options/choice_value.rst.inc index adaa022e215..b0a202ab453 100644 --- a/reference/forms/types/options/choice_value.rst.inc +++ b/reference/forms/types/options/choice_value.rst.inc @@ -11,8 +11,8 @@ configure the value that will be sent in the API request). This can be a callable or a property path. See `choice_label`_ for similar usage. If ``null`` is used, an incrementing integer is used as the name. -If you are using a callable to populate choice_value, you need to check for the -case that the value of the field may be null. +If you are using a callable to populate ```choice_value```, you need to check +for the case that the value of the field may be ```null```. .. caution:: From eba348614dcb2466df269a53fddf6f348314f064 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 14 Apr 2017 17:39:31 +0200 Subject: [PATCH 3/3] Fixed a syntax issue --- reference/forms/types/options/choice_value.rst.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/forms/types/options/choice_value.rst.inc b/reference/forms/types/options/choice_value.rst.inc index b0a202ab453..af2498e3ed8 100644 --- a/reference/forms/types/options/choice_value.rst.inc +++ b/reference/forms/types/options/choice_value.rst.inc @@ -11,8 +11,8 @@ configure the value that will be sent in the API request). This can be a callable or a property path. See `choice_label`_ for similar usage. If ``null`` is used, an incrementing integer is used as the name. -If you are using a callable to populate ```choice_value```, you need to check -for the case that the value of the field may be ```null```. +If you are using a callable to populate ``choice_value``, you need to check +for the case that the value of the field may be ``null``. .. caution::