DoctrineMigrations\Version20160908161616::up PHP Метод

up() публичный Метод

public up ( Doctrine\DBAL\Schema\Schema $schema )
$schema Doctrine\DBAL\Schema\Schema
    public function up(Schema $schema)
    {
        // DeliveryDate のお届け日数を修正
        // see https://github.com/EC-CUBE/ec-cube/issues/1732
        $app = \Eccube\Application::getInstance();
        $em = $app["orm.em"];
        $DeliveryDate = $app['eccube.repository.delivery_date']->find(9);
        if ($DeliveryDate->getValue() === 0) {
            $DeliveryDate->setValue(-1);
            $em->flush($DeliveryDate);
        }
    }
Version20160908161616