class CollectionToArrayTransformer implements DataTransformerInterface
| mixed | transform($collection) Transforms a collection into an array. | |
| mixed | reverseTransform(mixed $array) Transforms choice keys into entities. |
Transforms a collection into an array.
| $collection |
| mixed | The value in the transformed representation |
| TransformationFailedException |
Transforms choice keys into entities.
| mixed | $array | An array of entities |
| mixed | The value in the original representation |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bridge/Doctrine/Form/DataTransformer/CollectionToArrayTransformer.html