1.4.6 Build 488

visual editor for ORM frameworks

Pricing information Free download

How to import any existing project based on Propel or Doctrine ORM

Step-by-step tutorial how to import existing project using Doctrine or Propel ORM framework to ORM Designer. This technique could be used to any project created by Zend framework or any other MVC framework as well as stand alone project using Doctrine or Propel.

Import of any project based on application framework directly unsupported by ORM Designer isn't much more diffcult than supported one. Difference in the import way is only in finding ORM data files. If framework used by your application isn't implemented in ORM Designer you have to select these data files manually during import.

Every image of this tutorial can be zoomed to full size.


Welcome Screen

On Welcome screen use a ribbon button to open ribbon menu as the next step shows.


Import Project from ORM

Choose Import project from ORM in the application ribbon menu.


Import Project Wizard

In Import Project Wizard window set following params:

  • Project Name: Enter name of the project.
  • Root Import Directory: It is a root directory path of project. Each file path will be relative to this directory.
  • Framework: Choose Without Framework.
  • ORM Type: Selection of the type depends on ORM used in the project. Currently you can choose between Propel and Doctrine.
  • Automatic import of all founded files: By this checkbox you set if all files founded in entered directory shall be imported, or if you want to choose only part of files to import. This settings is irrelevant for Without Framework project, so in this tutorial the checkbox should be unchecked.

Press Import after setting all required parameters.


Setting files to import

ORM Designer doesn't know structure of your project and that's why it can't find any file to import. Therefore you have to add requested files manualy by using Add File button.


For each file selected from a disk is necessary to choose a file format. For example, Doctrine has only one file format DoctrineYml. But Propel ORM can be stored in YAML or XML file so you must choose PropelYml or PropelXml.


After adding all requested files to ORM Designer Import Project Window will look like this. If you have added all files you wanted to than press Import button.


Import is Complete

Project imported to ORM Designer will look like this.


ORM Designer on Twitter

Feed from our blog

Missing field-type icons in ORM Designer

Propel ORM Behaviors support!

Propel ORM validators support!

How to change export format (schema.yml / schema.xml)

How to import model from MySql Workbench

New visual symbols for NULL/NOT NULL column types

Execute another application from ORM Designer import/export script

Forum topics

ORM Designer forum: http://forum.orm-designer.com/

About ORM Designer

ORM Designer is a tool for modelling entity relationship diagrams (ERD). The biggest advantage is full support of any ORM framework which has its definitions stored in a markup language or other structured file.

Currently supported ORMs are PHP Doctrine, PHP Propel and CakePHP frameworks, but more will be added in close future.

Inventic s.r.o. - PayPal verified

Real Time Web Analytics

Clicky

Legal notice: The name CakePHP and the cake icon are trademarks of the Cake Software Foundation Inc., and used with permission. "symfony" is a trademark of Fabien Potencier.

© 2009-2012 Inventic s.r.o. all rights reserved