Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 12 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
13 | View Code Duplication | public function up(Schema $schema) |
|
14 | { |
||
15 | // DeliveryDate のお届け日数を修正 |
||
16 | // see https://github.com/EC-CUBE/ec-cube/issues/1732 |
||
17 | $app = \Eccube\Application::getInstance(); |
||
18 | $em = $app["orm.em"]; |
||
19 | $DeliveryDate = $app['eccube.repository.delivery_date']->find(9); |
||
20 | if ($DeliveryDate->getValue() === 0) { |
||
21 | $DeliveryDate->setValue(-1); |
||
22 | $em->flush($DeliveryDate); |
||
23 | } |
||
24 | } |
||
25 | |||
40 |