3

I can't seem to find any extension/module/etc that does this nicely.

You can access the column metadata as follows, but I want a good way to display it as a flowchart or hypergraph in a model's index.

$m=new MyModel; 
Yii::log(CVarDumper::dumpAsString($m->tableSchema->columns),'warning');  

// echo $m->toJSON(); // uses json behavior, will give this to a js flowchart to show the schema

tshepang
  • 12,111
  • 21
  • 91
  • 136
111
  • 1,788
  • 1
  • 23
  • 38

2 Answers2

0

There is one tool in phpmyadmin called designer. its written in PHP and really draw a nice data model from database. you should refer that code.

Shiv
  • 1,269
  • 11
  • 20
0

Not exactly what you want, but have you had a look at MySQL Workbench yet? Experience with it is somewhat mixed, but I find it great to keep an overview of databases.

DaSourcerer
  • 6,288
  • 5
  • 32
  • 55