- A lot of bugfixes, mainly with escaping (still working on it to get 100% coverage)
This commit is contained in:
1 parent
e3d0e45a4e
commit
3905047111
8 files changed
+91
-126
No files matched your search
@@ -22,14 +22,13 @@ class Create extends Fragment {
|
||||
public function render() : string
|
||||
{
|
||||
return $this->renderSegments([
|
||||
static::SQL_TOKEN, $this->renderTables($this->table),
|
||||
$this->renderFields(),
|
||||
static::SQL_TOKEN, $this->renderTables($this->table), $this->renderFields(),
|
||||
]);
|
||||
}
|
||||
|
||||
public function renderFields() : string
|
||||
{
|
||||
return "(" . PHP_EOL . implode(",".PHP_EOL, array_map(function($field) {
|
||||
return "(" . PHP_EOL . implode("," . PHP_EOL, array_map(function($field) {
|
||||
return " " . EntityField::generateCreateColumn($field);
|
||||
}, $this->fieldList)) . PHP_EOL . ")";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user