diff --git a/Form/Type/VichFileType.php b/Form/Type/VichFileType.php index 0661e175..ada776d5 100644 --- a/Form/Type/VichFileType.php +++ b/Form/Type/VichFileType.php @@ -64,7 +64,7 @@ protected function buildDeleteField(FormBuilderInterface $builder, array $option $object = $form->getParent()->getData(); // no object or no uploaded file: no delete button - if (null === $object || null === $storage->resolvePath($object, $form->getName())) { + if (null === $object || null === $storage->resolveUri($object, $form->getName())) { return; }