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