2017 © Pedro Peláez
 

library doctrine-extra-bundle

Extra features for Doctrine, as a Symfony bundle

image

alexandresalome/doctrine-extra-bundle

Extra features for Doctrine, as a Symfony bundle

  • Saturday, July 16, 2016
  • by alexandresalome
  • Repository
  • 4 Watchers
  • 39 Stars
  • 22,386 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 10 Forks
  • 4 Open issues
  • 6 Versions
  • 12 % Grown

The README.md

DoctrineExtraBundle

Build status Latest Stable Version Total Downloads License Monthly Downloads Daily Downloads, (*1)

Graph tool for Doctrine. Relies on Graphviz., (*2)

Demo, (*3)

Installation

Install the latest version with, (*4)

composer require --dev alexandresalome/doctrine-extra-bundle

Then, enable the bundle by adding the following line in the app/AppKernel.php file of your project:, (*5)

// app/AppKernel.php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        //...
        if (in_array($this->getEnvironment(), ['dev', 'test'])) {
            // ...
            // Because the vendor code could be not present, you should check if the bundle is here before using it.
            $bundles[] = new Alex\DoctrineExtraBundle\AlexDoctrineExtraBundle();
        }


        // ...
    }

    // ...
}

Usage

Dump entity manager schema as graph

php app/console doctrine:mapping:graphviz

If you want to create a PDF file out of it, with Linux:, (*6)

.. code-block:: bash, (*7)

php app/console doctrine:mapping:graphviz | dot -Tpdf -oout.pdf
xdg-open out.pdf

Development

Generate sample graphs

A set of sample entities are available to test internally the schema generations. You can generate the graph for any of the samples (located in Tests/Fixtures) by running:, (*8)

./Resources/bin/graph Simple | dot -Tpdf -oout.pdf
xdg-open out.pdf

The Versions

16/07 2016

dev-master

9999999-dev

Extra features for Doctrine, as a Symfony bundle

  Sources   Download

MIT

The Requires

 

16/07 2016

v0.3.0

0.3.0.0

Extra features for Doctrine, as a Symfony bundle

  Sources   Download

MIT

The Requires

 

14/06 2016

v0.2.2

0.2.2.0

Extra features for Doctrine, as a Symfony bundle

  Sources   Download

MIT

The Requires

 

29/10 2015

v0.2.1

0.2.1.0

Extra features for Doctrine, as a Symfony bundle

  Sources   Download

MIT

The Requires

 

01/09 2015

v0.2.0

0.2.0.0

Extra features for Doctrine, as a Symfony bundle

  Sources   Download

MIT

The Requires

 

16/10 2013

v0.1.0

0.1.0.0

Extra features for Doctrine, as a Symfony bundle

  Sources   Download

MIT

The Requires