fix(TreeMapper#getParentOf): Select correct type

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2023-07-15 14:12:50 +02:00
parent 53bbd8b01d
commit 026fb6229d
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ class TreeMapper extends QBMapper {
'id' => $itemId,
'type' => $type,
]);
return $this->findEntityWithType($qb, $type);
return $this->findEntityWithType($qb, self::TYPE_FOLDER);
}
/**