Make queries work with the new base mapper
Signed-off-by: Julius Härtl <jus@bitgrid.net> fix: conflicts
This commit is contained in:
@@ -678,14 +678,12 @@ class BoardService {
|
||||
return $newBoard;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $ownerId
|
||||
* @param $newOwnerId
|
||||
* @return void
|
||||
*/
|
||||
public function transferOwnership($owner, $newOwner) {
|
||||
public function transferOwnership(string $owner, string $newOwner): void {
|
||||
$boards = $this->boardMapper->findAllByUser($owner);
|
||||
foreach ($boards as $board) {
|
||||
$this->aclMapper->transferOwnership($board->getId(), $owner, $newOwner);
|
||||
}
|
||||
$this->boardMapper->transferOwnership($owner, $newOwner);
|
||||
$this->aclMapper->transferOwnership($owner, $newOwner);
|
||||
$this->assignedUsersMapper->transferOwnership($owner, $newOwner);
|
||||
$this->cardMapper->transferOwnership($owner, $newOwner);
|
||||
}
|
||||
@@ -721,4 +719,8 @@ class BoardService {
|
||||
public function getBoardUrl($endpoint) {
|
||||
return $this->urlGenerator->linkToRouteAbsolute('deck.page.index') . '#' . $endpoint;
|
||||
}
|
||||
|
||||
private function clearBoardsCache() {
|
||||
$this->boardsCache = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user