projects
/
Pman.Builder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00b907c
)
ERM.php
author
Alan Knowles
<alan@akbkhome.com>
Tue, 25 Oct 2011 07:49:00 +0000
(15:49 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 25 Oct 2011 07:49:00 +0000
(15:49 +0800)
ERM.php
patch
|
blob
|
history
diff --git
a/ERM.php
b/ERM.php
index
9e1d78d
..
6e5528a
100644
(file)
--- a/
ERM.php
+++ b/
ERM.php
@@
-127,7
+127,11
@@
class Pman_Builder_ERM extends Pman
$cache[$tn][$dd->name] = $dd->desc;
}
- $defs = $dd->getDatabaseConnection()->tableInfo($do->tableName());
+ $defs = $dd->getDatabaseConnection()->tableInfo($tn);
+ $types[$tn] = array();
+ foreach($defs as $c) {
+ $types[$tn][$c['name']] = $c['type'];
+ }
echo '<PRE>';print_r($defs);
}