|
|
@@ -196,20 +196,6 @@ class ProductFamilyController extends AdminController |
|
|
|
) |
|
|
|
); |
|
|
|
|
|
|
|
$currentMerchant = $this->merchantUtils->getMerchantCurrent(); |
|
|
|
|
|
|
|
$formBuilder->add('depositoryZone', EntityType::class, [ |
|
|
|
'class' => DepositoryZone::class, |
|
|
|
'query_builder' => function (EntityRepository $er) use ($currentMerchant) { |
|
|
|
return $er->createQueryBuilder('d') |
|
|
|
->where('d.merchant = :currentMerchant') |
|
|
|
->setParameter('currentMerchant', $currentMerchant) |
|
|
|
->andWhere('d.status > 0'); |
|
|
|
}, |
|
|
|
'label' => 'Zone de dépot', |
|
|
|
'required' => false |
|
|
|
]); |
|
|
|
|
|
|
|
$formBuilder = $this->overrideFormBuilder($formBuilder, $entity, $view); |
|
|
|
|
|
|
|
return $formBuilder; |