Failed Conditions
Pull Request — master (#1513)
by Lam
33:18
created

Version20160303223925::up()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 14
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

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