modelGenerator: put theforeign keys on the next line instead having more than 80 chars

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3727 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2017-05-24 09:08:56 +00:00
parent e9fa1aafb0
commit d58fd97840

View File

@@ -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";
}