Update docs

Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.com>

fix: conflicts
This commit is contained in:
Sergey Shliakhov
2022-03-22 14:15:11 +01:00
committed by Julius Härtl
parent eb8a321637
commit fc9fa5dc25
7 changed files with 107 additions and 33 deletions
+16
View File
@@ -475,4 +475,20 @@ class BoardMapper extends QBMapper implements IPermissionMapper {
return null;
});
}
/**
* @param $ownerId
* @param $newOwnerId
* @return void
*/
public function transferOwnership($ownerId, $newOwnerId)
{
$params = [
'owner' => $ownerId,
'newOwner' => $newOwnerId
];
$sql = "UPDATE `{$this->tableName}` SET `owner` = :newOwner WHERE `owner` = :owner";
$stmt = $this->execute($sql, $params);
$stmt->closeCursor();
}
}