2017 © Pedro Peláez
 

symfony-bundle doctrine-dump-fixtures-bundle

Symfony DoctrineDumpFixturesBundle

image

jupeter/doctrine-dump-fixtures-bundle

Symfony DoctrineDumpFixturesBundle

  • Thursday, January 26, 2017
  • by jupeter
  • Repository
  • 1 Watchers
  • 8 Stars
  • 1,330 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 4 Versions
  • 6 % Grown

The README.md

DoctrineDumpFixturesBundle

Bundle for Symfony 3, with you can dump database data into fixtures., (*1)

Dump Fixtures are used to dump database data into fixtures file., (*2)

Setup and Configuration, (*3)


Doctrine Dump fixtures for Symfony are maintained in the DoctrineDumpFixturesBundle_. The bundle uses external Doctrine Data Fixtures_ library., (*4)

Follow these steps to install the bundle and the library in the Symfony Standard edition. Run command in your project diretory:, (*5)

$ composer require jupeter/doctrine-dump-fixtures-bundle

Finally, register the Bundle DoctrineDumpFixturesBundle in app/AppKernel.php., (*6)

// ...
public function registerBundles()
{
    $bundles = array(
        // ...
        new TeamLab\Bundle\FixturesBundle\DoctrineDumpFixturesBundle(),
        // ...
    );
    // ...
}

Configuration

To dump entity data, you need setup annotation for entity:, (*7)


namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use TeamLab\Bundle\FixturesBundle\Mapping as Dump; # use Annotation /** * @ORM\Entity * @Dump\Entity # configure with entities should be dumped */ class Offers { // ... /** * @ORM\Column(type="string") * @Dump\Column # configure with columns should be dumped */ private function $name; // ... }

Dump existing data into fixtures

To dump all data from database to Fixtures, run command:, (*8)

$ ./bin/console doctrine:fixtures:dump 

The Versions

26/01 2017

dev-master

9999999-dev

Symfony DoctrineDumpFixturesBundle

  Sources   Download

MIT

The Requires

 

by Piotr Plenik

persistence fixture

26/01 2017

1.1

1.1.0.0

Symfony DoctrineDumpFixturesBundle

  Sources   Download

MIT

The Requires

 

by Piotr Plenik

persistence fixture

26/01 2017

0.5

0.5.0.0

Symfony DoctrineDumpFixturesBundle

  Sources   Download

MIT

The Requires

 

by Piotr Plenik

persistence fixture

26/01 2017

1.0

1.0.0.0

Symfony DoctrineDumpFixturesBundle

  Sources   Download

MIT

The Requires

 

by Piotr Plenik

persistence fixture