mysql-workbench-schema-exporter / zend1-exporter
MySQL Workbench Schema Exporter for Zend 1
Requires
- php: >=7.2
- mysql-workbench-schema-exporter/mysql-workbench-schema-exporter: ^3.2
README
This is an exporter to convert MySQL Workbench Models (*.mwb) to Zend Framework 1 DbTable and RestController Schema.
Prerequisites
- PHP 7.2+
- Composer to install the dependencies
Installation
php composer.phar require --dev mysql-workbench-schema-exporter/zend1-exporter
This will install the exporter and also require mysql-workbench-schema-exporter.
You then can invoke the CLI script using vendor/bin/mysql-workbench-schema-export
.
Formatter Setup Options
Additionally to the common options of mysql-workbench-schema-exporter these options are supported:
Zend DbTable
Setup Options
-
tablePrefix
Table prefix for generated class.
Default is
Application_Model_DbTable_
. -
parentTable
Ancestor class, the class to extend for generated class.
Default is
Zend_Db_Table_Abstract
. -
generateDRI
Generate
dependentTables
map.Default is
false
. -
generateGetterSetter
Not implemented yet.
Zend Rest Controller
Setup Options
-
tablePrefix
See above.
Default is
empty
. -
parentTable
See above.
Default is
Zend_Rest_Controller
.
Command Line Interface (CLI)
See documentation for mysql-workbench-schema-exporter