@@ -603,6 +603,9 @@ discard block |
||
603 | 603 | /** |
604 | 604 | * 登録、更新時のエラー画面表示 |
605 | 605 | * |
606 | + * @param Application $app |
|
607 | + * @param boolean $not_product_class |
|
608 | + * @param \Symfony\Component\Form\FormInterface $classForm |
|
606 | 609 | */ |
607 | 610 | protected function render($app, $Product, $ProductClass, $not_product_class, $classForm, $error = null) |
608 | 611 | { |
@@ -654,6 +657,7 @@ discard block |
||
654 | 657 | |
655 | 658 | /** |
656 | 659 | * 規格1と規格2を組み合わせた商品規格を作成 |
660 | + * @param Application $app |
|
657 | 661 | */ |
658 | 662 | private function createProductClasses($app, Product $Product, ClassName $ClassName1 = null, ClassName $ClassName2 = null) |
659 | 663 | { |
@@ -741,6 +745,7 @@ discard block |
||
741 | 745 | * |
742 | 746 | * @param $productClassDest ProductClass コピー先となる商品規格 |
743 | 747 | * @param $productClassOrig ProductClass コピー元となる商品規格 |
748 | + * @param Application $app |
|
744 | 749 | */ |
745 | 750 | private function setDefaultProductClass($app, $productClassDest, $productClassOrig) { |
746 | 751 | $productClassDest->setDeliveryDate($productClassOrig->getDeliveryDate()); |
@@ -73,17 +73,17 @@ discard block |
||
73 | 73 | |
74 | 74 | $qb = $this->createQueryBuilder('e'); |
75 | 75 | $qb->andWhere("e.priority >= $range_end ") |
76 | - ->andWhere("e.priority <= $range_start ") |
|
77 | - ->andWhere('e.event = :event') |
|
78 | - ->setParameter('event',$event) |
|
79 | - ->setMaxResults(1) |
|
80 | - ->orderBy('e.priority','ASC'); |
|
76 | + ->andWhere("e.priority <= $range_start ") |
|
77 | + ->andWhere('e.event = :event') |
|
78 | + ->setParameter('event',$event) |
|
79 | + ->setMaxResults(1) |
|
80 | + ->orderBy('e.priority','ASC'); |
|
81 | 81 | |
82 | 82 | $result=$qb->getQuery()->getResult(); |
83 | 83 | if(count($result)){ |
84 | - return $result[0]->getPriority() -1; |
|
84 | + return $result[0]->getPriority() -1; |
|
85 | 85 | }else{ |
86 | - return $range_start; |
|
86 | + return $range_start; |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | } |
@@ -96,13 +96,13 @@ discard block |
||
96 | 96 | $qb = $this->createQueryBuilder('e'); |
97 | 97 | |
98 | 98 | $qb->andWhere("e.priority >= $range_end ") |
99 | - ->andWhere("e.priority <= $range_start ") |
|
100 | - ->andWhere('e.priority '.($up ? '>' : '<' ).' :pri') |
|
101 | - ->andWhere('e.event = :event') |
|
102 | - ->setParameter('event',$pluginEventHandler->getEvent()) |
|
103 | - ->setParameter('pri', $pluginEventHandler->getPriority() ) |
|
104 | - ->setMaxResults(1) |
|
105 | - ->orderBy('e.priority', ($up ? 'ASC':'DESC' ) ); |
|
99 | + ->andWhere("e.priority <= $range_start ") |
|
100 | + ->andWhere('e.priority '.($up ? '>' : '<' ).' :pri') |
|
101 | + ->andWhere('e.event = :event') |
|
102 | + ->setParameter('event',$pluginEventHandler->getEvent()) |
|
103 | + ->setParameter('pri', $pluginEventHandler->getPriority() ) |
|
104 | + ->setMaxResults(1) |
|
105 | + ->orderBy('e.priority', ($up ? 'ASC':'DESC' ) ); |
|
106 | 106 | |
107 | 107 | $result=$qb->getQuery()->getResult(); |
108 | 108 |