em->getRepository(Entity\StationWebhook::class)->findOneBy( [ 'station' => $station, 'id' => (int)$id, ] ); if (!$record instanceof Entity\StationWebhook) { throw new NotFoundException(__('Web hook not found.')); } return $record; } }