Commit bb92a21c authored by Avris's avatar Avris


parent fa396205
namespace Avris\Micrus\Doctrine;
use Avris\Micrus\Exception\Http\NotFoundHttpException;
use Avris\Micrus\Exception\NotFoundException;
use Avris\Micrus\Model\MatchProvider;
use Avris\Micrus\Tool\QueueBag;
......@@ -46,7 +47,7 @@ class DoctrineMatchProvider implements MatchProvider
$entity = $repo->findOneBy([$key => $value]);
if (!$entity) {
throw new NotFoundException(sprintf(
throw new NotFoundHttpException(sprintf(
'Cannot find an entity of type "%s" with %s=%s',
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment