mikoweb/db-first-helper-bundle

Database First Helper Bundle

v1.2.4 2022-02-08 11:43 UTC

This package is auto-updated.

Last update: 2024-04-08 16:44:56 UTC


README

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\AbstractImportDatabaseCommand;

class DatabaseImportCommand extends AbstractImportDatabaseCommand
{
    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 }