diff --git a/classes/galley/Repository.php b/classes/galley/Repository.php index bacf8161cf0..8ae69f0d1c9 100644 --- a/classes/galley/Repository.php +++ b/classes/galley/Repository.php @@ -197,8 +197,7 @@ public function delete(Galley $galley): void // Delete related submission files $submissionFiles = Repo::submissionFile() ->getCollector() - ->filterByAssoc(Application::ASSOC_TYPE_GALLEY) - ->filterByFileIds([$galley->getId()]) + ->filterByAssoc(Application::ASSOC_TYPE_GALLEY, [$galley->getId()]) ->getMany(); foreach ($submissionFiles as $submissionFile) {