Ooh yeah, something I forgot to mention.
I am not generating the schema.yml because the schema is already a level of
abstraction. If you decide to generate the schema, you will have to be able
to read and generate a UML diagram based on it. Besides, the schema is very
database oriented.
Using XMI, it is possible to define stereotypes, groups, packages,
pre-defined models etc. I think we should skip the schema and generate
directly the files we need based on the ORM.
After that, we can just dump the schema easily.
The UML diagram is there to define the model and if something in the model
need persistence then the code is generated. Otherwise, it is just another
class.
-Hassen Ben Tanfous
PS: this is just a suggestion, I'm not trying to tell you what to do (even
if it sounds like it)
On Dec 22, 2007 1:43 PM, Hassen Ben Tanfous <hassenbentanf...@gmail.com>
wrote:
> Hello Michel,
> I was working on something similar using AndroMDA. I'm glad to see I'm
> not alone working on this.
> Your approach is interesting. I'm using Poseidon to generate the XMI and
> then process it by my AndroMDA cartridge.
> I think it is a great addon to symfony to be able to define a model using
> UML (like a class diagram for example). But, also taking advantage of the
> modules and actions systems by using other UML diagrams.
> For example, I can define in my UML something like that:
> As a user, I can do : this and that.
> Based on a template, we can generate the whole architecture including the
> code to keep everything clean. So, the code is clean and you have a visual
> advantage to explain complex systems.
> Keep the good work
> -Hassen Ben Tanfous
> On Dec 22, 2007 1:02 PM, Michel Weimerskirch <mic...@weimerskirch.net>
> wrote:
> > Hi
> > I wrote a small application that converts UML models in the XMI format
> > to configuration files for applications based on the symfony
> > framework. It generates config/schema.yml as well as lib/model/*.php
> > (including skeletons for custom operations and documentation for
> > classes, operations and parameters).
> > Details about what elements are converted as well as a download link
> > can be found here:
> > http://michel.weimerskirch.net/
> > Is there a page on the wiki with a list of such tools? I'd like to add
> > mine to it.
> > Also, if possible, I would be interested in hosting it on the symfony
> > SVN as I don't have a public SVN server. Otherwise I will probably put
> > it on sourceforge.
> > I'd be happy to get your feedback via this list, on #symfony
> > (username: paperjam) or by a comment on my blog.
> > Regards,
> > Michel
> > PS: Remember: This is work in progress! The code base is currently in
> > an early alpha stage. Not everything works completely fine yet and
> > features and functionality are subject to change.