itk-dev/database-bundle

A Symfony bundle with useful database stuff

1.3.1 2020-04-11 15:47 UTC

This package is auto-updated.

Last update: 2024-12-12 02:02:19 UTC


README

A Symfony bundle with useful database stuff.

Installation

Require the bundle with composer:

composer require itk-dev/database-bundle "^1.2"

Enable the bundle:

<?php
// Symfony 2 and 3.
// app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        // …
        new ItkDev\DatabaseBundle\ItkDevDatabaseBundle(),
        // …
    ];
}
<?php
// Symfony 4 and 5.
// config/bundles.php

return [
    // …
    ItkDev\DatabaseBundle\ItkDevDatabaseBundle::class => ['all' => true],
    // …
];

Usage

Dump database:

bin/console itk-dev:database:dump

Open database from command line:

bin/console itk-dev:database:cli