GET /api/entries returns object, no more array

This commit is contained in:
Nicolas Lœuillet 2015-02-10 06:44:38 +01:00
parent cbce162b40
commit eaf95758dc
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class WallabagRestController extends Controller
->getRepository('WallabagCoreBundle:Entry')
->findEntries(1, $isArchived, $isStarred, $isDeleted, $sort, $order);
if (!is_array($entries)) {
if (is_null($entries)) {
throw $this->createNotFoundException();
}

View File

@ -126,6 +126,6 @@ class EntryRepository extends EntityRepository
return $qb
->getQuery()
->getResult(Query::HYDRATE_ARRAY);
->getResult();
}
}