src/Form/Annotation/ElementResolverListener.php
public function handleHydratorAnnotation($e)
    {
        $annotation = $e->getParam('annotation');
        if (!($annotation instanceof ComposedObject && $annotation->isCollection())) {
            return;
        }

        $elementSpec = $e->getParam('elementSpec');
        if (isset($elementSpec['spec']['hydrator'])) {
            unset($elementSpec['spec']['hydrator']);
        }
    }
public function handleHydratorAnnotation($e)
    {
        $annotation = $e->getParam('annotation');
        if (!($annotation instanceof ComposedObject && $annotation->isCollection())) {
            return;
        }

        $elementSpec = $e->getParam('elementSpec');
        if (isset($elementSpec['spec']['hydrator'])) {
            unset($elementSpec['spec']['hydrator']);
        }
    }
public function handleHydratorAnnotation ( $ e ) { $ annotation = $ e -> getParam ( 'annotation' ) ; if ( ! ( $ annotation instanceof ComposedObject && $ annotation -> isCollection ( ) ) ) { return ; } $ elementSpec = $ e -> getParam ( 'elementSpec' ) ; if ( isset ( $ elementSpec [ 'spec' ] [ 'hydrator' ] ) ) { unset ( $ elementSpec [ 'spec' ] [ 'hydrator' ] ) ; } }
Handle the Hydrator annotation

Removes the hydrator class from collection specification.

@todo remove this callback
@param  \Zend\EventManager\EventInterface $e
@return void
Handle the Hydrator annotation