src/CSDT/CollectionsBundle/CollectionHelper/Manager/ArrayCasterManager.php
public function process(array $array, $collectionName) 
    {
        foreach ($this->casters as $caster) {
            if ($caster instanceof ArrayCasterInterface) {
                if ($caster->support($collectionName)) {
                    return $caster->toCollection($array, $collectionName);
                }
            }
        }
        
        throw new \ParseError(
            sprintf("No caster found for %s type", $collectionName)
        );
    }
public function process(array $array, $collectionName) 
    {
        foreach ($this->casters as $caster) {
            if ($caster instanceof ArrayCasterInterface) {
                if ($caster->support($collectionName)) {
                    return $caster->toCollection($array, $collectionName);
                }
            }
        }
        
        throw new \ParseError(
            sprintf("No caster found for %s type", $collectionName)
        );
    }
Process

This method search the caster able to
process the given array. It thrown an
exception if no one is stored.

@param array  $array          The array to process
@param string $collectionName The collection class result

@throws \ParseError if no one caster is able to parse the array
@return CollectionInterface