ChoiceToBooleanArrayTransformer deprecated::reverseTransform()

mixed reverseTransform(array $values)

Transforms a checkbox/radio button array to a single choice.

The input value is an array with the choices as keys and true/false as values, depending on whether a given choice is selected. The output is the selected choice.

Parameters

array $values An array of values

Return Value

mixed The value in the original representation

Exceptions

TransformationFailedException If the given value is not an array, if the recuperation of the choices fails or if some choice can't be found.
doc_Symfony
2016-10-28 06:08:44
Comments
Leave a Comment

Please login to continue.