|
@@ -173,13 +173,14 @@ WHERE table_type = 'BASE TABLE' AND table_schema NOT IN ('pg_catalog', 'informat
|
173
|
173
|
return $array;
|
174
|
174
|
}
|
175
|
175
|
|
176
|
|
- public function generateDbo($name, $columns, $file)
|
|
176
|
+ public function generateDbo($name, $columns, $file, $fileArray)
|
177
|
177
|
{
|
178
|
178
|
$vars = array(
|
179
|
179
|
"dbo_name" => $name,
|
180
|
180
|
"columns" => $columns
|
181
|
181
|
);
|
182
|
182
|
$this->buildTwig('dbo.php', $file, $vars);
|
|
183
|
+ $this->buildTwig('dbo_array.php', $fileArray, $vars);
|
183
|
184
|
}
|
184
|
185
|
|
185
|
186
|
public function generateModel($modelName, $modelUserName, $dboName, $columns, $file, $fileUser)
|
|
@@ -345,7 +346,7 @@ ORDER BY parameters.ordinal_position;");
|
345
|
346
|
$dataAccessName = $baseName . "DataAccess";
|
346
|
347
|
$businessName = $baseName . "Business";
|
347
|
348
|
$controllerName = $baseName . "Controller";
|
348
|
|
- $this->generateDbo($dboName, $columns, $dbo_dir . $dboName . ".php");
|
|
349
|
+ $this->generateDbo($dboName, $columns, $dbo_dir . $dboName . ".php", $dbo_dir . $dboName . "Array.php");
|
349
|
350
|
$this->generateModel($modelName, $modelUserName, $dboName, $columns, $model_dir . $modelName . ".php",
|
350
|
351
|
$model_dir . $modelUserName . ".php");
|
351
|
352
|
$this->generateDataAccess($dataAccessName, $modelName, $modelUserName, $dboName,
|