浏览代码

Correctif depositoryZone

develop
Guillaume 3 年前
父节点
当前提交
4e8362743a
共有 1 个文件被更改,包括 0 次插入14 次删除
  1. +0
    -14
      ShopBundle/Controller/Backend/ProductFamilyController.php

+ 0
- 14
ShopBundle/Controller/Backend/ProductFamilyController.php 查看文件

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

正在加载...
取消
保存