|
@@ 731-735 (lines=5) @@
|
| 728 |
|
$types = []; |
| 729 |
|
$escapedDbRowData = []; |
| 730 |
|
|
| 731 |
|
foreach ($dbRowData as $columnName => $value) { |
| 732 |
|
$columnDescriptor = $tableDescriptor->getColumn($columnName); |
| 733 |
|
$types[] = $columnDescriptor->getType(); |
| 734 |
|
$escapedDbRowData[$this->connection->quoteIdentifier($columnName)] = $value; |
| 735 |
|
} |
| 736 |
|
|
| 737 |
|
$this->connection->insert($tableName, $escapedDbRowData, $types); |
| 738 |
|
|
|
@@ 817-821 (lines=5) @@
|
| 814 |
|
$escapedDbRowData = []; |
| 815 |
|
$escapedPrimaryKeys = []; |
| 816 |
|
|
| 817 |
|
foreach ($dbRowData as $columnName => $value) { |
| 818 |
|
$columnDescriptor = $tableDescriptor->getColumn($columnName); |
| 819 |
|
$types[] = $columnDescriptor->getType(); |
| 820 |
|
$escapedDbRowData[$this->connection->quoteIdentifier($columnName)] = $value; |
| 821 |
|
} |
| 822 |
|
foreach ($primaryKeys as $columnName => $value) { |
| 823 |
|
$columnDescriptor = $tableDescriptor->getColumn($columnName); |
| 824 |
|
$types[] = $columnDescriptor->getType(); |
|
@@ 822-826 (lines=5) @@
|
| 819 |
|
$types[] = $columnDescriptor->getType(); |
| 820 |
|
$escapedDbRowData[$this->connection->quoteIdentifier($columnName)] = $value; |
| 821 |
|
} |
| 822 |
|
foreach ($primaryKeys as $columnName => $value) { |
| 823 |
|
$columnDescriptor = $tableDescriptor->getColumn($columnName); |
| 824 |
|
$types[] = $columnDescriptor->getType(); |
| 825 |
|
$escapedPrimaryKeys[$this->connection->quoteIdentifier($columnName)] = $value; |
| 826 |
|
} |
| 827 |
|
|
| 828 |
|
$this->connection->update($tableName, $escapedDbRowData, $escapedPrimaryKeys, $types); |
| 829 |
|
|
|
@@ 887-891 (lines=5) @@
|
| 884 |
|
$types = []; |
| 885 |
|
$escapedFilters = []; |
| 886 |
|
|
| 887 |
|
foreach ($filters as $columnName => $value) { |
| 888 |
|
$columnDescriptor = $tableDescriptor->getColumn($columnName); |
| 889 |
|
$types[] = $columnDescriptor->getType(); |
| 890 |
|
$escapedFilters[$this->connection->quoteIdentifier($columnName)] = $value; |
| 891 |
|
} |
| 892 |
|
|
| 893 |
|
$this->connection->insert($pivotTableName, $escapedFilters, $types); |
| 894 |
|
|