mwbmodelcommand

Batch model class generation with relations from MySQL workbench mwb file
9 reviews   downloaded 1202 times
created by unikly, last updated on July 29, 2009

This is a Yii shell command to help generate model classes with relations descriptions.

If you use MySQL workbench for your database design, and have all the relationships defined on the diagram, this will help you to translated them into Yii model classes. So you can always maintain your database schema and relationships in the visual way, and not worry about create or update relations in model class files.

And it's a batch process, which read all the tables from the database connection, and parse the mwb file for corresponding relationships and create the model class file instantly.

It doesn't require innodb, so long as you've got relation on the ERD, it should work for you, and it can tell 1:1,1:M and M:M relationships.

Resources