diff --git a/tools/modelGenerator.php b/tools/modelGenerator.php index f429325..3ca52dc 100755 --- a/tools/modelGenerator.php +++ b/tools/modelGenerator.php @@ -153,7 +153,8 @@ class modelGenerator $f .= " // The foreign constraints\n"; $f .= " \$this->foreign = array (\n"; foreach ($schema["foreign"] as $field=>$params) - $f .= " \"$field\" => array (\"". implode ("\", \"", $params). + $f .= " \"$field\" => array (\n \"". + implode ("\", \"", $params). "\"),\n"; $f .= " );\n"; }