mikopet/doctrine-data-manager-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

A package to dump and load data from/to DB across Doctrine Entities

dev-master 2016-12-15 00:00 UTC

This package is not auto-updated.

Last update: 2021-02-05 23:46:00 UTC


README

Easily dumps data from DB or loads to DB across Doctrine Entities This version do only YAML dump and load, but feel free to contribute more, if needed

Tested only with symfony3+ and php5.6!

Installation

$ composer require mikopet/doctrine-data-manager-bundle --dev

And register it in AppKernel

        if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
            // ...
            $bundles[] = new Mikopet\DoctrineDataManagerBundle\DoctrineDataManagerBundle();
            // ...
        }

Use

After installing the package you got two commands (dump/load). With these commands you can do exactly what the name means. Just run it without arguments, or add the entity name what you want to manage

$ php bin/console doctrine:data:dump
$ php bin/console doctrine:data:load User

Pay attention to the names! This package uses conventional entity names/setters/getters!

Donation

If you like my software, and want to say thanks, just donate a few coin for me on this bitcoin address: 3J3madHEPfqN2jcZN3A5iYMFMkktETkbLX

Thank you!