Form/Handler.php
private function mapMediaIds($entity, $mediaIds)
    {
        $accessor = new PropertyAccessor();

        foreach ($mediaIds as $key => $value) {
            $accessor->setValue($entity, $key, $value);
        }

        return $entity;
    }
private function mapMediaIds($entity, $mediaIds)
    {
        $accessor = new PropertyAccessor();

        foreach ($mediaIds as $key => $value) {
            $accessor->setValue($entity, $key, $value);
        }

        return $entity;
    }
Map media ids.

@param mixed $entity
@param int[] $mediaIds

@return mixed