Skip to content

Commit f895c92

Browse files
committed
fix crop ration manager + taxon images bugs
1 parent 16cb765 commit f895c92

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Form/Type/TaxonImageType.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@
44

55
namespace Aropixel\SyliusAdminMediaPlugin\Form\Type;
66

7+
use App\Entity\Taxonomy\TaxonImage;
8+
use Symfony\Component\OptionsResolver\OptionsResolver;
79

810
final class TaxonImageType extends ImageType
911
{
1012

13+
public function configureOptions(OptionsResolver $resolver): void
14+
{
15+
$resolver->setDefaults(array(
16+
'data_class' => TaxonImage::class,
17+
));
18+
}
19+
1120
public function getBlockPrefix(): string
1221
{
1322
return 'sylius_taxon_image';

0 commit comments

Comments
 (0)