|
@@ 619-623 (lines=5) @@
|
| 616 |
|
$types = []; |
| 617 |
|
$escapedDbRowData = []; |
| 618 |
|
|
| 619 |
|
foreach ($dbRowData as $columnName => $value) { |
| 620 |
|
$columnDescriptor = $tableDescriptor->getColumn($columnName); |
| 621 |
|
$types[] = $columnDescriptor->getType(); |
| 622 |
|
$escapedDbRowData[$this->connection->quoteIdentifier($columnName)] = $value; |
| 623 |
|
} |
| 624 |
|
|
| 625 |
|
$this->connection->insert($tableName, $escapedDbRowData, $types); |
| 626 |
|
|
|
@@ 708-712 (lines=5) @@
|
| 705 |
|
$escapedDbRowData = []; |
| 706 |
|
$escapedPrimaryKeys = []; |
| 707 |
|
|
| 708 |
|
foreach ($dbRowData as $columnName => $value) { |
| 709 |
|
$columnDescriptor = $tableDescriptor->getColumn($columnName); |
| 710 |
|
$types[] = $columnDescriptor->getType(); |
| 711 |
|
$escapedDbRowData[$this->connection->quoteIdentifier($columnName)] = $value; |
| 712 |
|
} |
| 713 |
|
foreach ($primaryKeys as $columnName => $value) { |
| 714 |
|
$columnDescriptor = $tableDescriptor->getColumn($columnName); |
| 715 |
|
$types[] = $columnDescriptor->getType(); |
|
@@ 713-717 (lines=5) @@
|
| 710 |
|
$types[] = $columnDescriptor->getType(); |
| 711 |
|
$escapedDbRowData[$this->connection->quoteIdentifier($columnName)] = $value; |
| 712 |
|
} |
| 713 |
|
foreach ($primaryKeys as $columnName => $value) { |
| 714 |
|
$columnDescriptor = $tableDescriptor->getColumn($columnName); |
| 715 |
|
$types[] = $columnDescriptor->getType(); |
| 716 |
|
$escapedPrimaryKeys[$this->connection->quoteIdentifier($columnName)] = $value; |
| 717 |
|
} |
| 718 |
|
|
| 719 |
|
$this->connection->update($tableName, $escapedDbRowData, $escapedPrimaryKeys, $types); |
| 720 |
|
|
|
@@ 778-782 (lines=5) @@
|
| 775 |
|
$types = []; |
| 776 |
|
$escapedFilters = []; |
| 777 |
|
|
| 778 |
|
foreach ($filters as $columnName => $value) { |
| 779 |
|
$columnDescriptor = $tableDescriptor->getColumn($columnName); |
| 780 |
|
$types[] = $columnDescriptor->getType(); |
| 781 |
|
$escapedFilters[$this->connection->quoteIdentifier($columnName)] = $value; |
| 782 |
|
} |
| 783 |
|
|
| 784 |
|
$this->connection->insert($pivotTableName, $escapedFilters, $types); |
| 785 |
|
|