MySQL Workbench Schema Exporter for Doctrine 1

v3.2.0 2023-03-06 19:04 UTC

This package is auto-updated.

Last update: 2023-03-06 19:04:55 UTC


Build Status Latest Stable Version Total Downloads License

This is an exporter to convert MySQL Workbench Models (*.mwb) to Doctrine 1 YAML Schema.


  • PHP 7.2+
  • Composer to install the dependencies


php composer.phar require --dev mysql-workbench-schema-exporter/doctrine1-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:

Doctrine 1.0 YAML Schema

Setup Options

  • extendTableNameWithSchemaName

    Include schema name beside the table name.

    Default is false.

Model Comment Behavior

  • {d:externalRelations}relation{/d:externalRelations}

  • {MwbExporter:actAs}actAs: [Timestampable]{/MwbExporter:actAs}

    The following example export Doctrine behavior by using Table comment:

  • Foreign key name

    To replace relations name by the name of the foreign key, start the foreign key name with d:.

Command Line Interface (CLI)

See documentation for mysql-workbench-schema-exporter