tags:

views:

485

answers:

7

I'm a newbie to CakePHP and was wondering if there is any tool that can show my model classes and their relationship in a visual / graphical environment?

A: 

I was using an UML tool for a while called poseidon. They apparently had a for pay module that would let you import your PHP classes and it would pull up UML models for them. Disclaimer: I never used that portion of the tool. The UML mapping was cool though.

Zak
http://www.gentleware.com/uml-software-community-edition.html
deizel
+1  A: 

You could try cakeapp.com, though it works on the table level, and not on the model level.

dhofstet
This is a cool tool! ;)
powtac
A: 

I usually build my database schema using MySQL workbench.

There are some experimental plug-ins for the latest version that will output the schema files, but I've not had much luck getting them to work.

RichardAtHome
A: 

May I suggest the CAKE Bake utility. The advantage of using Cake is to rapidly develop your application(s) based on the model schema. Once you design the database tables, cake bake will allow you to create all of the CRUD (Create, Read, Update, Delete) pages with all of the relationships included.

Dooltaz
A: 

I used to use DBDesigner (Windows and Linux only) to visualise my schema. This can be exported to SQL CREATE TABLE statements. Once all my tables had been created I would just use the bake utility, as others have suggested, to scaffold out all the code - it's a great way to learn the framework.

Mathew Attlee
A: 

Hi,

Give MySQL Workbench a try.

WB 5.1: - replaced DBDesigner (Data Modeling)

WB 5.2 (in beta): - replaces MySQL Query Browser - replaces MySQL Administrator

And, here are ORM Plugins for Propel, Doctrine, Symfonny, CakePHP: http://forums.mysql.com/read.php?153,208229

  • MySQL Workbench
MySQL Workbench
A: 

You can also try ORM Designer, which is ERD tool with a support for CakePHP model attributes. You can create the whole model visually with all model attributes and than export the model to php files with generated classes. orm-designer.com/cakephp.

Ludek Vodicka