Pārlūkot izejas kodu

Option 'multiple' dans createEntityFormBuilder

reduction
Guillaume pirms 4 gadiem
vecāks
revīzija
c450118d10
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. +1
    -0
      ShopBundle/Controller/Admin/AdminController.php

+ 1
- 0
ShopBundle/Controller/Admin/AdminController.php Parādīt failu

@@ -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') ;

Notiek ielāde…
Atcelt
Saglabāt