Database First helper for Symfony framework
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Command
DependencyInjection
EventListener
Resources/config
recipes/mikoweb/db-first-helper-bundle/1.0
LICENSE
MikowebDbFirstHelperBundle.php
README.md
composer.json

README.md

Database First Helper Bundle

Instalation

Requires composer, install as follows:

composer req mikoweb/db-first-helper-bundle

Usage

Create command class inside your bundle, eg.

namespace App\Command;

use Mikoweb\Bundle\DbFirstHelperBundle\Command\ImportDatabaseCommandAbstract;

class DatabaseImportCommand extends ImportDatabaseCommandAbstract
{
    protected static $defaultName = 'app:database:import';
}

If you want to lock doctrine:schema:update, add follows service:

services:
    app_database.ignore_tables_listener:
        class: Mikoweb\Bundle\DbFirstHelperBundle\EventListener\IgnoreTablesListener
        tags:
            - {name: doctrine.event_listener, event: postGenerateSchema }