Skip to content

Commit

Permalink
findOneBy expects an array
Browse files Browse the repository at this point in the history
  • Loading branch information
jimsafley committed Feb 24, 2024
1 parent 43819ee commit 0749fa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ public function deleteFulltextPreSitePage(ZendEvent $event)
{
$request = $event->getParam('request');
$em = $this->getServiceLocator()->get('Omeka\EntityManager');
$sitePage = $em->getRepository('Omeka\Entity\SitePage')->findOneBy($request->getId());
$sitePage = $em->getRepository('Omeka\Entity\SitePage')->findOneBy(['id' => $request->getId()]);
$request->setOption('deleted_entity_id', $sitePage->getId());
}

Expand Down

0 comments on commit 0749fa6

Please sign in to comment.