public function reverseTransform($value): ?array
    {
        if (empty($value)) {
            return [];
        }

        if (!is_string($value)) {
            throw new TransformationFailedException('Expected a string.');
        }

        $value = explode(',', $value);

        try {
            return array_map([$this->locationService, 'loadLocation'], $value);
        } catch (NotFoundException $e) {
            throw new TransformationFailedException($e->getMessage(), $e->getCode(), $e);
        }
    }
public function reverseTransform($value): ?array
    {
        if (empty($value)) {
            return [];
        }

        if (!is_string($value)) {
            throw new TransformationFailedException('Expected a string.');
        }

        $value = explode(',', $value);

        try {
            return array_map([$this->locationService, 'loadLocation'], $value);
        } catch (NotFoundException $e) {
            throw new TransformationFailedException($e->getMessage(), $e->getCode(), $e);
        }
    }
public function reverseTransform ( $ value ) : ? array { if ( empty ( $ value ) ) { return [ ] ; } if ( ! is_string ( $ value ) ) { throw new TransformationFailedException ( 'Expected a string.' ) ; } $ value = explode ( ',' , $ value ) ; try { return array_map ( [ $ this -> locationService , 'loadLocation' ] , $ value ) ; } catch ( NotFoundException $ e ) { throw new TransformationFailedException ( $ e -> getMessage ( ) , $ e -> getCode ( ) , $ e ) ; } }
Transforms a Location's ID string into a domain specific Location objects.

@param mixed $value

@return Location[]

@throws TransformationFailedException
Transforms a Location s ID string into a domain specific Location objects .