MySQL Workbench Schema Exporter for Zend 1

v3.2.0 2023-03-06 18:16 UTC

This package is auto-updated.

Last update: 2023-03-06 18:17:36 UTC


README

Build Status Latest Stable Version Total Downloads License

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

Links