Skip to content

Commit

Permalink
TTK-26616 replace findOneByCod by findOneBy
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurujai committed Oct 16, 2023
1 parent 7c6d38f commit e64ece7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Services/OpencastImportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public function importRecordingFromMediaPackage(array $mediaPackage, ?bool $inve
}

$tagRepo = $this->dm->getRepository(Tag::class);
$opencastTag = $tagRepo->findOneByCod($this->defaultTagImported);
$opencastTag = $tagRepo->findOneBy(['cod' => $this->defaultTagImported]);
if ($opencastTag) {
$tagService = $this->tagService;
$tagAdded = $tagService->addTagToMultimediaObject($multimediaObject, $opencastTag->getId());
Expand Down

0 comments on commit e64ece7

Please sign in to comment.