nicotec/doctrineauto-bundle

Generator Entity Doctrine for Mysql - doctrine reverse engineer auto

dev-master 2014-12-16 16:33 UTC

This package is not auto-updated.

Last update: 2024-06-08 12:55:59 UTC


README

Generateur automatique des entités à partir de mysql pour doctrine2

Prise en charge:

  • GedmoDoctrineExtension > stof.
  • User and Role.

Installation

  1. Use Composer to download the library
php composer.phar require nicotec/doctrineauto-bundle
// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        if (in_array($this->getEnvironment(), array('dev', 'test'))) {
            $bundles[] = new Nicotec\DoctrineautoBundle\NicotecDoctrineautoBundle();
        }
        // ...
    );
}
// app/config/routing_dev.yml
nicotec_doctrineauto:
    resource: "@NicotecDoctrineautoBundle/Controller/"
    type:     annotation
    prefix:   /doctrineauto
// app/config.yml
#exemple
parameters:
    generator:
        default_mapping: default
        mappings:
            default:
                bdd_namespace: Bo\AdminBundle
                security:
                    entity: Superuser
                    property: username
                superclass: 1
            config:
                bdd_namespace: Bo\SuperBundle
                security:
                    entity: User
                    property: username
                superclass: 1
                table_ignores:
#                    - user
#                    - role
            mail:
                bdd_namespace: Bo\MailerBundle
                superclass: 1

Utilisation

http://.../app_dev.php/doctrineauto