Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

BitWeb/doctrine-entity-generator-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

doctrine-entity-generator-module

Doctrine entity generator module for Zend Framework 2.

Adding module

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

or add following to composer.json

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

Loading module in APP_ROOT/config/application.config.php:

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

This module requires adding initializer into module.config.php for ServiceManager:

	'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.

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages