Discussion:
Reverse Engineer to UML?
Tobias Parent
2007-05-11 01:02:43 UTC
Permalink
Hey, all -
I've got a Cake app I wrote a while back, and now the client has asked
for a UML diagram, to present to their new in-house IT guy. I, however,
never generated UML diagrams on it back then, and I need to
reverse-engineer one now (I've forgotten some of what I did for them, as
I haven't worked on that app in a good long while).

Any ideas or suggestions for a quick way of automagically doing
something like this?

Thanks!
-Toby

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to cake-php-/***@public.gmane.org
To unsubscribe from this group, send email to cake-php-unsubscribe-/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
Dieter@be
2007-05-11 08:05:39 UTC
Permalink
mysql workbench (used to be dbdesigner 4) is (afaik) still alpha but
can already do this.
However, it doesn't know about cakes conventions about key naming, so
unless you explicity specify foreign keys in your sql ddl it won't
create the associations.

http://www.mysql.com/products/tools/workbench/
Post by Tobias Parent
Hey, all -
I've got a Cake app I wrote a while back, and now the client has asked
for a UML diagram, to present to their new in-house IT guy. I, however,
never generated UML diagrams on it back then, and I need to
reverse-engineer one now (I've forgotten some of what I did for them, as
I haven't worked on that app in a good long while).
Any ideas or suggestions for a quick way of automagically doing
something like this?
Thanks!
-Toby
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to cake-php-/***@public.gmane.org
To unsubscribe from this group, send email to cake-php-unsubscribe-/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
Dr. Tarique Sani
2007-05-11 08:16:10 UTC
Permalink
Post by ***@be
unless you explicity specify foreign keys in your sql ddl it won't
create the associations.
http://www.mysql.com/products/tools/workbench/
This is only for the Database - I think Toby also wants it for the classes

phpEdit can do the reverse for some years now that is UML to PHP and
there were talks about PHP to UML as well... check out
http://waterproof.fr (or google if I got the url wrong :) )

Tarique
--
=============================================================
PHP for E-Biz: http://sanisoft.com
Cheesecake-Photoblog needs you!: http://cheesecake-photoblog.org
=============================================================

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to cake-php-/***@public.gmane.org
To unsubscribe from this group, send email to cake-php-unsubscribe-/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
Daniel Hofstetter
2007-05-11 09:46:00 UTC
Permalink
Take the UML editor of your choice, add for every model a class, and
last but not least add the relations between those models. And you
have your UML diagram.

HTH

--
Daniel Hofstetter
http://cakebaker.42dh.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to cake-php-/***@public.gmane.org
To unsubscribe from this group, send email to cake-php-unsubscribe-/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
Tobias Parent
2007-05-11 11:47:18 UTC
Permalink
Yeah, I get how to make a UML diagram, and I know it's easy - but we're
talking a massive number of tables in MySQL, and multiple public/private
functions in my controllers. I was actually thinking it'd be trivial to
create a meta-app that'd scan my app folder and generate, much like
bake.php does, an XML file that I can import into Visio (for example),
to automake a UML class diagram. One including the model and controller
data.

I appreciate the suggestions, but time draws short, so I guess I'll be
hand-writing the silly thing. Visio won't even recognize my MySQL
connection... ech.

Regards!
-Toby
Post by Daniel Hofstetter
Take the UML editor of your choice, add for every model a class, and
last but not least add the relations between those models. And you
have your UML diagram.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to cake-php-/***@public.gmane.org
To unsubscribe from this group, send email to cake-php-unsubscribe-/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
Dr. Tarique Sani
2007-05-11 11:37:37 UTC
Permalink
Post by Tobias Parent
Any ideas or suggestions for a quick way of automagically doing
something like this?
http://tech.motion-twin.com/php_php2xmi.html found this as the 5th
link at http://www.google.com/search?q=convert+php+to+UML

Guess will do the job

HTH
Tarique
--
=============================================================
PHP for E-Biz: http://sanisoft.com
Cheesecake-Photoblog needs you!: http://cheesecake-photoblog.org
=============================================================

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to cake-php-/***@public.gmane.org
To unsubscribe from this group, send email to cake-php-unsubscribe-/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
Tobias Parent
2007-05-11 11:50:41 UTC
Permalink
Tarique, what can I say? I prostrate myself at your feet. Well worth
looking into. Thanks!!

-Toby
Post by Dr. Tarique Sani
Post by Tobias Parent
Any ideas or suggestions for a quick way of automagically doing
something like this?
http://tech.motion-twin.com/php_php2xmi.html found this as the 5th
link at http://www.google.com/search?q=convert+php+to+UML
Guess will do the job
HTH
Tarique
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to cake-php-/***@public.gmane.org
To unsubscribe from this group, send email to cake-php-unsubscribe-/***@public.gmane.org
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Loading...