MySQL Workbench Schema Exporter for Zend 1

v3.1.1 2020-07-19 14:22 UTC

This package is auto-updated.

Last update: 2021-05-22 08:51:39 UTC


README

This is an exporter to convert MySQL Workbench Models (*.mwb) to Zend Framework 1 DbTable and RestController Schema.

Prerequisites

  • PHP 5.4+
  • 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

Links