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

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

public down ( Doctrine\DBAL\Schema\Schema $schema )
$schema Doctrine\DBAL\Schema\Schema
    public function down(Schema $schema)
    {
        $app = \Eccube\Application::getInstance();
        $em = $app["orm.em"];
        $DeliveryDate = $app['eccube.repository.delivery_date']->find(9);
        if ($DeliveryDate->getValue() === -1) {
            $DeliveryDate->setValue(0);
            $em->flush($DeliveryDate);
        }
    }
Version20160908161616