2017 © Pedro Peláez
 

library doctrine-entity-generator-module

Doctrine entity generator module

image

bitweb/doctrine-entity-generator-module

Doctrine entity generator module

  • Saturday, August 9, 2014
  • by tobre
  • Repository
  • 10 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

doctrine-entity-generator-module

Doctrine entity generator module for Zend Framework 2., (*1)

Adding module

php composer.phar require bitweb/doctrine-entity-generator-module
# (When asked for a version, type `1.*`)

or add following to composer.json, (*2)

"require": {
  "bitweb/doctrine-entity-generator-module": "1.*",
}

Loading module in APP_ROOT/config/application.config.php:, (*3)

   'modules' => array(
        'DoctrineModule',
        'DoctrineORMModule',
      'Application',
        'DoctrineEntityGeneratorModule'
    ),

This module requires adding initializer into module.config.php for ServiceManager:, (*4)

    'service_manager' => array(
        'initializers' => array (
            function ($service, $sm) {
                if ($service instanceof ObjectManagerAwareInterface) {
                    $service->setObjectManager($sm->get('doctrine.entitymanager.orm_default'));
                }
            }
        ),
    )

This is needed for the module to use project's Object manager., (*5)

Now, web interface can be accessed http://example.com/yourproject/dev for generating entities., (*6)

The Versions

09/08 2014

dev-master

9999999-dev

Doctrine entity generator module

  Sources   Download

The Requires

 

12/03 2014

1.0

1.0.0.0

Doctrine entity generator module

  Sources   Download

The Requires