mikoweb / db-first-helper-bundle
Database First Helper Bundle
Installs: 117
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.1.3
- symfony/console: ^4.0|^5.0|^6.0
- symfony/dependency-injection: ^4.0|^5.0|^6.0
- symfony/filesystem: ^4.0|^5.0|^6.0
- symfony/orm-pack: *
This package is auto-updated.
Last update: 2024-10-08 17:43:47 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 }