Browse Source

Option 'multiple' dans createEntityFormBuilder

reduction
Guillaume 4 years ago
parent
commit
c450118d10
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      ShopBundle/Controller/Admin/AdminController.php

+ 1
- 0
ShopBundle/Controller/Admin/AdminController.php View File

@@ -365,6 +365,7 @@ class AdminController extends EasyAdminController
$form->add($child->getName(), EntityType::class, array(
'class' => $this->em->getClassMetadata($passedOptions['class'])->getName(),
'label' => $passedOptions['label'],
'multiple' => isset($passedOptions['multiple']) ? $passedOptions['multiple'] : false,
'placeholder' => '--',
'query_builder' => function (EntityRepository $repo) use ($passedOptions, $propertyMerchant) {
$queryBuilder = $repo->createQueryBuilder('e') ;

Loading…
Cancel
Save