@@ 704-708 (lines=5) @@ | ||
701 | $types = []; |
|
702 | $escapedDbRowData = []; |
|
703 | ||
704 | foreach ($dbRowData as $columnName => $value) { |
|
705 | $columnDescriptor = $tableDescriptor->getColumn($columnName); |
|
706 | $types[] = $columnDescriptor->getType(); |
|
707 | $escapedDbRowData[$this->connection->quoteIdentifier($columnName)] = $value; |
|
708 | } |
|
709 | ||
710 | $this->connection->insert($tableName, $escapedDbRowData, $types); |
|
711 | ||
@@ 790-794 (lines=5) @@ | ||
787 | $escapedDbRowData = []; |
|
788 | $escapedPrimaryKeys = []; |
|
789 | ||
790 | foreach ($dbRowData as $columnName => $value) { |
|
791 | $columnDescriptor = $tableDescriptor->getColumn($columnName); |
|
792 | $types[] = $columnDescriptor->getType(); |
|
793 | $escapedDbRowData[$this->connection->quoteIdentifier($columnName)] = $value; |
|
794 | } |
|
795 | foreach ($primaryKeys as $columnName => $value) { |
|
796 | $columnDescriptor = $tableDescriptor->getColumn($columnName); |
|
797 | $types[] = $columnDescriptor->getType(); |
|
@@ 795-799 (lines=5) @@ | ||
792 | $types[] = $columnDescriptor->getType(); |
|
793 | $escapedDbRowData[$this->connection->quoteIdentifier($columnName)] = $value; |
|
794 | } |
|
795 | foreach ($primaryKeys as $columnName => $value) { |
|
796 | $columnDescriptor = $tableDescriptor->getColumn($columnName); |
|
797 | $types[] = $columnDescriptor->getType(); |
|
798 | $escapedPrimaryKeys[$this->connection->quoteIdentifier($columnName)] = $value; |
|
799 | } |
|
800 | ||
801 | $this->connection->update($tableName, $escapedDbRowData, $escapedPrimaryKeys, $types); |
|
802 | ||
@@ 858-862 (lines=5) @@ | ||
855 | $types = []; |
|
856 | $escapedFilters = []; |
|
857 | ||
858 | foreach ($filters as $columnName => $value) { |
|
859 | $columnDescriptor = $tableDescriptor->getColumn($columnName); |
|
860 | $types[] = $columnDescriptor->getType(); |
|
861 | $escapedFilters[$this->connection->quoteIdentifier($columnName)] = $value; |
|
862 | } |
|
863 | ||
864 | $this->connection->insert($pivotTableName, $escapedFilters, $types); |
|
865 |