Failed Conditions
Pull Request — master (#1514)
by Lam
05:46
created

Version20160303223925::up()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 13
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 1 Features 0
Metric Value
c 4
b 1
f 0
dl 0
loc 13
rs 9.4285
cc 2
eloc 8
nc 2
nop 1
1
<?php
2
3
namespace DoctrineMigrations;
4
5
use Doctrine\DBAL\Migrations\AbstractMigration;
6
use Doctrine\DBAL\Schema\Schema;
7
8
/**
9
 * Auto-generated Migration: Please modify to your needs!
10
 */
11
class Version20160303223925 extends AbstractMigration
12
{
13
    /**
14
     * @param Schema $schema
15
     */
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
        $PageLayout = $app['eccube.repository.page_layout']->findOneBy(array(
21
            'url' => 'contact',
22
            'name' => 'お問い合わせ(入力ページ)',
23
        ));
24
        if ($PageLayout) {
25
            $PageLayout->setName('お問い合わせ(確認ページ)');
26
            $app['orm.em']->flush($PageLayout);
27
        }
28
    }
29
30
    /**
31
     * @param Schema $schema
32
     */
33
    public function down(Schema $schema)
34
    {
35
        // this down() migration is auto-generated, please modify it to your needs
36
37
    }
38
}
39
40
# migrationファイルが一つもないとこけるのでダミーファイル
0 ignored issues
show
Coding Style introduced by
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Loading history...
41