dev-master
9999999-dev https://github.com/HydraxSkarrag/mwbs-exporter-symfony-bundleSymfony2 Bundle for the "MySQL Workbench Schema Exporter for Doctrine2 Annotations"
MIT
The Requires
by Daniel Kubitza
database cli doctrine symfony mysql workbench
Wallogit.com
2017 © Pedro Peláez
Symfony2 Bundle for the "MySQL Workbench Schema Exporter for Doctrine2 Annotations"
Symfony2 Bundle for the "MySQL Workbench Schema Exporter for Doctrine2 Annotations", (*1)
Workbench files are saved in the Resources/workbench/*.mwb directory inside your bundle., (*2)
schema_name here refers to name of the Workbench file, (*3)
mwbs_exporter:
schema:
schema_name:
bundle: YourBundle
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
To process the files execute the command in the terminal:, (*5)
app/console mwbs:export-entities
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)
Symfony2 Bundle for the "MySQL Workbench Schema Exporter for Doctrine2 Annotations"
MIT
database cli doctrine symfony mysql workbench