Skip to content

Commit

Permalink
Merge pull request #845 from dpfaffenbauer/resource-selection
Browse files Browse the repository at this point in the history
[ResourceBundle] fix for resource selection type
  • Loading branch information
dpfaffenbauer authored Feb 27, 2019
2 parents 32833cb + c728132 commit d8e2722
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

namespace CoreShop\Bundle\ResourceBundle\Form\Type;

use CoreShop\Bundle\ResourceBundle\Form\DataTransformer\PimcoreResourceDataTransformer;
use CoreShop\Component\Resource\Repository\RepositoryInterface;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\NumberType;
Expand All @@ -35,6 +36,14 @@ public function __construct(RepositoryInterface $repository)
$this->repository = $repository;
}

/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->addModelTransformer(new PimcoreResourceDataTransformer($this->repository));
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit d8e2722

Please sign in to comment.