mysql-workbench-schema-exporter / propel-exporter
MySQL Workbench Schema Exporter for Propel 1
Requires
- php: >=7.2
- mysql-workbench-schema-exporter/mysql-workbench-schema-exporter: ^4.1
- ntlab/php-obj: ^1.0
- symfony/yaml: ^3.0
README
README
This is an exporter to convert MySQL Workbench Models (*.mwb) to Propel 1 YAML and XML Schema.
Prerequisites
- PHP 7.2+
- Composer to install the dependencies
Installation
composer require --dev mysql-workbench-schema-exporter/propel-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
.
Configuration
Model Comment Behavior
-
{propel:allowPkInsert}true{/propel:allowPkInsert}
(applied to Table)Allow primary key value insertion if its an auto increment column.
-
{propel:propel_behaviors}behavior{/propel:propel_behaviors}
(applied to Table)Propel behaviors definition, written in YAML format.
Example usage:
{propel:propel_behaviors} timestampable: {/propel:propel_behaviors}
-
{propel:behaviors}behavior{/propel:behaviors}
(applied to Table)Custom behaviors definition, written in YAML format.
Command Line Interface (CLI)
See documentation for mysql-workbench-schema-exporter