projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
76be7ff
)
DatabaseColumns.php
author
Alan Knowles
<alan@roojs.com>
Thu, 12 Jun 2014 06:22:16 +0000
(14:22 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 12 Jun 2014 06:22:16 +0000
(14:22 +0800)
DatabaseColumns.php
patch
|
blob
|
history
diff --git
a/DatabaseColumns.php
b/DatabaseColumns.php
index
2b632f5
..
cced6b6
100644
(file)
--- a/
DatabaseColumns.php
+++ b/
DatabaseColumns.php
@@
-34,6
+34,7
@@
class Pman_Core_DatabaseColumns extends Pman {
$types = array();
$types = array();
+ $tables = array();
$schemas = array($table => $d->table());
foreach($cols as $name=>$table_col) {
$schemas = array($table => $d->table());
foreach($cols as $name=>$table_col) {
@@
-42,8
+43,7
@@
class Pman_Core_DatabaseColumns extends Pman {
$schemas[$tbl] = DB_DataObject::Factory($tbl)->table();
}
$types[$name] = $schemas[$tbl][$col];
$schemas[$tbl] = DB_DataObject::Factory($tbl)->table();
}
$types[$name] = $schemas[$tbl][$col];
-
-
+ $tables[$name] = $tbl;
}
foreach($re['join_names'] as $c=>$f) {
}
foreach($re['join_names'] as $c=>$f) {
@@
-59,6
+59,7
@@
class Pman_Core_DatabaseColumns extends Pman {
'name' => $c,
'val' => $f,
'type' => isset($types[$c]) ? $this->typeToName($types[$c]) : -1,
'name' => $c,
'val' => $f,
'type' => isset($types[$c]) ? $this->typeToName($types[$c]) : -1,
+ 'table' => isset($tables[$c]) ? $tables[$c] : "",
);
}
);
}