Skip to content

Commit

Permalink
Fix for autogeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Tinsdeall committed Dec 22, 2014
1 parent 2a17b59 commit 82cf7c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/generation/common.php
Expand Up @@ -37,7 +37,7 @@ function getModels() {

$q = pg_query("SELECT * FROM information_schema.tables WHERE table_catalog='{$settings['database']['passwd']}' AND table_schema='public' AND table_type != 'VIEW'");
$models = array();
while ($data = $q->fetch_assoc()) {
while ($data = pg_fetch_assoc()) {
$models[$data['table_name']] = array("columns"=>array(), "multi"=>array(), "single"=>array(), "key"=>array());
}

Expand Down

0 comments on commit 82cf7c1

Please sign in to comment.