Today I would like to introduce you a new upcoming feature for CakePHP users. Nowadays ORM Designer can export php classes for your model objects. But when you want to use CakePHP migrations, you have to make the DB changes manually. This would change in the next ORM Designer release. Besides model classes ORM Designer knows how to generate CakeSchema (http://book.cakephp.org/2.0/en/console-and-shells/schema-management-and-migrations.html) object class which defines a whole DB structure.
Usage of this new function is very simple. In your current ORM Designer model choose “Project object”
In Project property window there is a new item Schema with child export-file. Select “export-file” property and click on the button with three dots and choose export file for schema file.
Now, if you export your model by using “Export to ORM” button, beside the model object files DB schema file will be also generated.
For our example DB schema file will look like this:
Note: This feature will be available in 220.127.116.110 and later.