Skip to content

Commit

Permalink
Merge pull request #2124 from U-Mebius/fix-delivery-type-payment
Browse files Browse the repository at this point in the history
paymentsをentityタイプからpaymentタイプへ変更
  • Loading branch information
ryo-endo committed Feb 24, 2017
2 parents 219b40d + 5511992 commit a244a7f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Eccube/Form/Type/Admin/DeliveryType.php
Expand Up @@ -70,18 +70,11 @@ public function buildForm(FormBuilderInterface $builder, array $options)
new Assert\NotBlank(),
),
))
// todo type paymentに変更
->add('payments', 'entity', array(
->add('payments', 'payment', array(
'label' => '支払方法',
'class' => 'Eccube\Entity\Payment',
'property' => 'method',
'expanded' => true,
'multiple' => true,
'required' => false,
'query_builder' => function($er) {
return $er->createQueryBuilder('p')
->orderBy('p.rank', 'DESC');
},
'mapped' => false,
))
->add('delivery_times', 'collection', array(
Expand Down

0 comments on commit a244a7f

Please sign in to comment.