Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mikoweb/db-first-helper-bundle

Database First helper for Symfony framework
https://github.com/mikoweb/db-first-helper-bundle

bundle dbfirst php symfony

Last synced: 1 day ago
JSON representation

Database First helper for Symfony framework

Awesome Lists containing this project

README

        

# 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.

```php
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:

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

```