|
@@ 624-628 (lines=5) @@
|
| 621 |
|
$types = []; |
| 622 |
|
$escapedDbRowData = []; |
| 623 |
|
|
| 624 |
|
foreach ($dbRowData as $columnName => $value) { |
| 625 |
|
$columnDescriptor = $tableDescriptor->getColumn($columnName); |
| 626 |
|
$types[] = $columnDescriptor->getType(); |
| 627 |
|
$escapedDbRowData[$this->connection->quoteIdentifier($columnName)] = $value; |
| 628 |
|
} |
| 629 |
|
|
| 630 |
|
$this->connection->insert($tableName, $escapedDbRowData, $types); |
| 631 |
|
|
|
@@ 713-717 (lines=5) @@
|
| 710 |
|
$escapedDbRowData = []; |
| 711 |
|
$escapedPrimaryKeys = []; |
| 712 |
|
|
| 713 |
|
foreach ($dbRowData as $columnName => $value) { |
| 714 |
|
$columnDescriptor = $tableDescriptor->getColumn($columnName); |
| 715 |
|
$types[] = $columnDescriptor->getType(); |
| 716 |
|
$escapedDbRowData[$this->connection->quoteIdentifier($columnName)] = $value; |
| 717 |
|
} |
| 718 |
|
foreach ($primaryKeys as $columnName => $value) { |
| 719 |
|
$columnDescriptor = $tableDescriptor->getColumn($columnName); |
| 720 |
|
$types[] = $columnDescriptor->getType(); |
|
@@ 718-722 (lines=5) @@
|
| 715 |
|
$types[] = $columnDescriptor->getType(); |
| 716 |
|
$escapedDbRowData[$this->connection->quoteIdentifier($columnName)] = $value; |
| 717 |
|
} |
| 718 |
|
foreach ($primaryKeys as $columnName => $value) { |
| 719 |
|
$columnDescriptor = $tableDescriptor->getColumn($columnName); |
| 720 |
|
$types[] = $columnDescriptor->getType(); |
| 721 |
|
$escapedPrimaryKeys[$this->connection->quoteIdentifier($columnName)] = $value; |
| 722 |
|
} |
| 723 |
|
|
| 724 |
|
$this->connection->update($tableName, $escapedDbRowData, $escapedPrimaryKeys, $types); |
| 725 |
|
|
|
@@ 783-787 (lines=5) @@
|
| 780 |
|
$types = []; |
| 781 |
|
$escapedFilters = []; |
| 782 |
|
|
| 783 |
|
foreach ($filters as $columnName => $value) { |
| 784 |
|
$columnDescriptor = $tableDescriptor->getColumn($columnName); |
| 785 |
|
$types[] = $columnDescriptor->getType(); |
| 786 |
|
$escapedFilters[$this->connection->quoteIdentifier($columnName)] = $value; |
| 787 |
|
} |
| 788 |
|
|
| 789 |
|
$this->connection->insert($pivotTableName, $escapedFilters, $types); |
| 790 |
|
|