@@ 749-753 (lines=5) @@ | ||
746 | $types = []; |
|
747 | $escapedDbRowData = []; |
|
748 | ||
749 | foreach ($dbRowData as $columnName => $value) { |
|
750 | $columnDescriptor = $tableDescriptor->getColumn($columnName); |
|
751 | $types[] = $columnDescriptor->getType(); |
|
752 | $escapedDbRowData[$this->connection->quoteIdentifier($columnName)] = $value; |
|
753 | } |
|
754 | ||
755 | $this->connection->insert($tableName, $escapedDbRowData, $types); |
|
756 | ||
@@ 835-839 (lines=5) @@ | ||
832 | $escapedDbRowData = []; |
|
833 | $escapedPrimaryKeys = []; |
|
834 | ||
835 | foreach ($dbRowData as $columnName => $value) { |
|
836 | $columnDescriptor = $tableDescriptor->getColumn($columnName); |
|
837 | $types[] = $columnDescriptor->getType(); |
|
838 | $escapedDbRowData[$this->connection->quoteIdentifier($columnName)] = $value; |
|
839 | } |
|
840 | foreach ($primaryKeys as $columnName => $value) { |
|
841 | $columnDescriptor = $tableDescriptor->getColumn($columnName); |
|
842 | $types[] = $columnDescriptor->getType(); |
|
@@ 840-844 (lines=5) @@ | ||
837 | $types[] = $columnDescriptor->getType(); |
|
838 | $escapedDbRowData[$this->connection->quoteIdentifier($columnName)] = $value; |
|
839 | } |
|
840 | foreach ($primaryKeys as $columnName => $value) { |
|
841 | $columnDescriptor = $tableDescriptor->getColumn($columnName); |
|
842 | $types[] = $columnDescriptor->getType(); |
|
843 | $escapedPrimaryKeys[$this->connection->quoteIdentifier($columnName)] = $value; |
|
844 | } |
|
845 | ||
846 | $this->connection->update($tableName, $escapedDbRowData, $escapedPrimaryKeys, $types); |
|
847 | ||
@@ 905-909 (lines=5) @@ | ||
902 | $types = []; |
|
903 | $escapedFilters = []; |
|
904 | ||
905 | foreach ($filters as $columnName => $value) { |
|
906 | $columnDescriptor = $tableDescriptor->getColumn($columnName); |
|
907 | $types[] = $columnDescriptor->getType(); |
|
908 | $escapedFilters[$this->connection->quoteIdentifier($columnName)] = $value; |
|
909 | } |
|
910 | ||
911 | $this->connection->insert($pivotTableName, $escapedFilters, $types); |
|
912 |