@@ 758-762 (lines=5) @@ | ||
755 | $types = []; |
|
756 | $escapedDbRowData = []; |
|
757 | ||
758 | foreach ($dbRowData as $columnName => $value) { |
|
759 | $columnDescriptor = $tableDescriptor->getColumn($columnName); |
|
760 | $types[] = $columnDescriptor->getType(); |
|
761 | $escapedDbRowData[$this->connection->quoteIdentifier($columnName)] = $value; |
|
762 | } |
|
763 | ||
764 | $this->connection->insert($tableName, $escapedDbRowData, $types); |
|
765 | ||
@@ 847-851 (lines=5) @@ | ||
844 | $escapedDbRowData = []; |
|
845 | $escapedPrimaryKeys = []; |
|
846 | ||
847 | foreach ($dbRowData as $columnName => $value) { |
|
848 | $columnDescriptor = $tableDescriptor->getColumn($columnName); |
|
849 | $types[] = $columnDescriptor->getType(); |
|
850 | $escapedDbRowData[$this->connection->quoteIdentifier($columnName)] = $value; |
|
851 | } |
|
852 | foreach ($primaryKeys as $columnName => $value) { |
|
853 | $columnDescriptor = $tableDescriptor->getColumn($columnName); |
|
854 | $types[] = $columnDescriptor->getType(); |
|
@@ 852-856 (lines=5) @@ | ||
849 | $types[] = $columnDescriptor->getType(); |
|
850 | $escapedDbRowData[$this->connection->quoteIdentifier($columnName)] = $value; |
|
851 | } |
|
852 | foreach ($primaryKeys as $columnName => $value) { |
|
853 | $columnDescriptor = $tableDescriptor->getColumn($columnName); |
|
854 | $types[] = $columnDescriptor->getType(); |
|
855 | $escapedPrimaryKeys[$this->connection->quoteIdentifier($columnName)] = $value; |
|
856 | } |
|
857 | ||
858 | $this->connection->update($tableName, $escapedDbRowData, $escapedPrimaryKeys, $types); |
|
859 | ||
@@ 917-921 (lines=5) @@ | ||
914 | $types = []; |
|
915 | $escapedFilters = []; |
|
916 | ||
917 | foreach ($filters as $columnName => $value) { |
|
918 | $columnDescriptor = $tableDescriptor->getColumn($columnName); |
|
919 | $types[] = $columnDescriptor->getType(); |
|
920 | $escapedFilters[$this->connection->quoteIdentifier($columnName)] = $value; |
|
921 | } |
|
922 | ||
923 | $this->connection->insert($pivotTableName, $escapedFilters, $types); |
|
924 |