Development

SymfonyYamlMyqlWorkbenchPlugin

You must first sign up to be able to contribute.

Version 7 (modified by jupeter, 9 years ago)
add information about exception problems

Symfony YAML MySQL Workbench Plugin

I have developed a MySQL Workbench Plugin to export directly to a Symfony schema.yml file. The conversion includes all tables, relations, foreign keys, foreign key cascades, indexes and uniques that you enter into your model.

Installation:

Download the attached file and install into your modules directory of MySQL Workbench. If you installed into the default location then this will be

Windows:

C:\Program Files\MySQL\MySQL Workbench 5.0 OSS\modules\

Linux:

~/.mysql/workbench/modules/

Now when you run MySQL Workbench you will get two new entries in the Plugins->Catalog Menu:

Copy Symfony YAML To Clipboard

This action converts all of the tables and relations in the current project into Symfony YAML format, Then copies the source to the clipboard.

Export Symfony YAML To File

This action converts all of the tables and relations in the current project into Symfony YAML format, Then allows you to select a file (if not already selected) and save the source to disk.

You should then perform a model update.

symfony propel:build-model

or

symfony propel:build-all

note: At this moment in time there is no way to identify I18n elements in MySQL Workbench.

* when you don't have new menu entries, check exception by choosing View->Advanced->GRT Shell.

Attachments