Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mikoweb/db-first-helper-bundle
- Owner: mikoweb
- License: other
- Created: 2017-04-28T19:02:45.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-08T11:45:06.000Z (almost 3 years ago)
- Last Synced: 2024-12-02T11:13:43.523Z (2 months ago)
- Topics: bundle, dbfirst, php, symfony
- Language: PHP
- Homepage: https://rmweb.pl/symfony-4-jak-zaimportowac-dwie-bazy
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 }```