summaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-05-05 10:31:54 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-05-05 10:31:54 +0200
commit865661ed75a542245abcc6639adee769a13267d0 (patch)
tree588010f79c616584f265b063ce35d09b7d898eb6 /lib/public/AppFramework
parent6d3aef1849eb84d423be2a8789bb13f6ef5a26a3 (diff)
downloadnextcloud-server-865661ed75a542245abcc6639adee769a13267d0.tar.gz
nextcloud-server-865661ed75a542245abcc6639adee769a13267d0.zip
Rename IQueryBuilder::executeUpdate to IQueryBuilder::executeStatement
Because executeUpdate wasn't a great name. And in DBAL they also use executeStatement more consistently now. Ref https://github.com/doctrine/dbal/issues/4607 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/public/AppFramework')
-rw-r--r--lib/public/AppFramework/Db/QBMapper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/public/AppFramework/Db/QBMapper.php b/lib/public/AppFramework/Db/QBMapper.php
index ac6520a9d03..f1450b5dd4c 100644
--- a/lib/public/AppFramework/Db/QBMapper.php
+++ b/lib/public/AppFramework/Db/QBMapper.php
@@ -101,7 +101,7 @@ abstract class QBMapper {
->where(
$qb->expr()->eq('id', $qb->createNamedParameter($entity->getId(), $idType))
);
- $qb->executeUpdate();
+ $qb->executeStatement();
return $entity;
}
@@ -132,7 +132,7 @@ abstract class QBMapper {
$qb->setValue($column, $qb->createNamedParameter($value, $type));
}
- $qb->executeUpdate();
+ $qb->executeStatement();
if ($entity->id === null) {
// When autoincrement is used id is always an int
@@ -211,7 +211,7 @@ abstract class QBMapper {
$qb->where(
$qb->expr()->eq('id', $qb->createNamedParameter($id, $idType))
);
- $qb->executeUpdate();
+ $qb->executeStatement();
return $entity;
}