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