ChoicesToBooleanArrayTransformer deprecated::transform()

mixed transform(mixed $array)

Transforms an array of choices to a format appropriate for the nested checkboxes/radio buttons.

The result is an array with the options as keys and true/false as values, depending on whether a given option is selected. If this field is rendered as select tag, the value is not modified.

Parameters

mixed $array An array

Return Value

mixed The value in the transformed representation

Exceptions

TransformationFailedException If the given value is not an array or if the choices can not be retrieved.
doc_Symfony
2016-10-28 06:08:43
Comments
Leave a Comment

Please login to continue.