Import Propel Project
This short tutorial demonstrates that in Skipper, import of existing Propel project and the following model editing is simple and intuitive.
Hint: See the ORM Model basics for detailed description of ORM elements (e.g. package, entity).
First, import sample Propel ORM project Jobeet or some of your existing projects. To do this select Import ORM Schema Files from File menu and follow the steps shown in pictures below.
The last screen visually represents Jobeet project imported to Skipper and arranged automatically by import algorithm. It is a good starting point to work with your model.
Arrange visual model
Although imported model is automatically arranged it is a good idea to reposition entities inside the packages to exactly fit the model logic. Also, you can change colors of packages according to your preferences.
Extend project model
Now that you have a nice visual model we are going to show you how to extend Jobeet model to store unlimited number of dynamic attributes for each job. We will add jobeet_job_attribute entity, configure new fields and create association between jobeet_job_attribute and jobeet_job.
Now with updated model it is time to export package back to Propel schema definition files. Because package is imported from the existing schema files export is automatically configured to export the data back to these files. Before first export check that export locations and formats are correct.
In Skipper each package represents single exportable element. This means that our project will export two schema definition files, one for sfJobeetPlugin and one for sfGuardPlugin package. Each package can have its own export path, which is relative to project root directory and its own export format. For Propel ORM it is XML or YML.
And here is an example of the new jobeet_job_attribute entity. As you can see, everything is well formatted and exported in Doctrine YML format.
Note: Because of HTML formating problem we used table_ tag instead of table.
Next time you will need to make further changes or to adjust the model, just open Skipper file and edit your project entities. Then again export the project to ORM.
As you can see above, import, editing and export of the schema definition files is five minute work with Skipper (ten if you are doing it for the first time). Now compare it with the effort of doing such task manually. As you have just discovered Skipper dramatically saves your time and helps you to work with schema definitions in much more enjoyable way.