| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function up(Schema $schema) |
||
| 17 | { |
||
| 18 | // this up() migration is auto-generated, please modify it to your needs |
||
| 19 | $app = \Eccube\Application::getInstance(); |
||
| 20 | $em = $app["orm.em"]; |
||
| 21 | |||
| 22 | $DeviceType = $em->getRepository('\Eccube\Entity\Master\DeviceType')->find(\Eccube\Entity\Master\DeviceType::DEVICE_TYPE_PC); |
||
| 23 | $PageLayout = new PageLayout(); |
||
| 24 | $PageLayout->setDeviceType($DeviceType); |
||
| 25 | $PageLayout->setName('404エラーページ'); |
||
| 26 | $PageLayout->setUrl('404'); |
||
| 27 | $PageLayout->setFileName('404'); |
||
| 28 | $PageLayout->setEditFlg(2); |
||
| 29 | $PageLayout->setMetaRobots('noindex'); |
||
| 30 | $PageLayout->setCreateDate(new \DateTime()); |
||
| 31 | $PageLayout->setUpdateDate(new \DateTime()); |
||
| 32 | |||
| 33 | $em->persist($PageLayout); |
||
| 34 | $em->flush(); |
||
| 35 | } |
||
| 36 | |||
| 46 |