2017 © Pedro Peláez
 

cli mwbs-exporter-symfony-bundle

Symfony2 Bundle for the "MySQL Workbench Schema Exporter for Doctrine2 Annotations"

image

hydrax-skarrag/mwbs-exporter-symfony-bundle

Symfony2 Bundle for the "MySQL Workbench Schema Exporter for Doctrine2 Annotations"

  • Saturday, January 18, 2014
  • by HydraxSkarrag
  • Repository
  • 2 Watchers
  • 2 Stars
  • 66 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

README

Symfony2 Bundle for the "MySQL Workbench Schema Exporter for Doctrine2 Annotations", (*1)

Setup

Workbench files are saved in the Resources/workbench/*.mwb directory inside your bundle., (*2)

Configuration

Single schema

schema_name here refers to name of the Workbench file, (*3)

mwbs_exporter:
    schema:
        schema_name:
            bundle: YourBundle

Multiple schemas

schema_name here refers to name of the Workbench file, (*4)

mysql_workbench_schema_exporter:
    schema:
        schema1_name:
            bundle: YourBundle
        schema2_name:
            bundle: YourBundle
        schema3_name:
            bundle: YourBundle
            params:
                bundleNamespace: "YourBundle"
                repositoryNamespace: "YourBundle\\Entity"
                entityNamespace: ""
                useAnnotationPrefix: "ORM\\"
                generateBaseClasses: true
                useAutomaticRepository: true
                skipPluralNameChecking: false
                enhanceManyToManyDetection: true
                filename: "%%entity%%.%%extension%%"
                backupExistingFile: false
                indentation: 4
                quoteIdentifier: false

Execution

To process the files execute the command in the terminal:, (*5)

app/console mwbs:export-entities

Exporter Options

Exporter options

  • bundleNamespace, (*6)

    Name of your Bundlenamespace, (*7)

  • repositoryNamespace, (*8)

    Name of your repositoryNamespace, (*9)

  • entityNamespace, (*10)

    Name of your entityNamespace, (*11)

  • useAnnotationPrefix, (*12)

    Doctrine annotation prefix. Default is ORM\., (*13)

  • generateBaseClasses, (*14)

    Generate Entity Base Classes, (*15)

  • useAutomaticRepository, (*16)

    See above., (*17)

  • skipPluralNameChecking, (*18)

    Skip checking the plural name of model and leave as is, useful for non English table names. Default is false., (*19)

  • enhanceManyToManyDetection, (*20)

    If enabled, many to many relations between tables will be added to generated code. Default is true., (*21)

  • filename, (*22)

    The output filename format, use the following tag %schema%, %table%, %entity%, and %extension% to allow the filename to be replaced with contextual data. Default is %entity%.%extension%., (*23)

  • backupExistingFile, (*24)

    If target already exists create a backup before replacing the content. Default is true., (*25)

  • indentation, (*26)

    The indentation size for generated code., (*27)

  • quoteIdentifier, (*28)

    If this option is enabled, all table names and column names will be quoted using backtick (`). Usefull when the table name or column name contains reserved word. Default is false., (*29)

The Versions

18/01 2014

dev-master

9999999-dev https://github.com/HydraxSkarrag/mwbs-exporter-symfony-bundle

Symfony2 Bundle for the "MySQL Workbench Schema Exporter for Doctrine2 Annotations"

  Sources   Download

MIT

The Requires

 

by Daniel Kubitza

database cli doctrine symfony mysql workbench