Symfony\Bridge\Doctrine\Form\DataTransformer\CollectionToArrayTransformer::transform
Transforms a collection into an array.
Signature
public function transform(Collection
$collection )
Parameters
$collection
— object- A collection of entities
Returns
- mixed
- An array of entities