Merge pull request #1069 from wallabag/v2-fix-return-entries

GET /api/entries returns object, no more array
This commit is contained in:
Jeremy
2015-02-10 14:51:32 +01:00
2 changed files with 3 additions and 3 deletions

View File

@ -98,7 +98,7 @@ class EntryRepository extends EntityRepository
* @param string $sort
* @param string $order
*
* @return ArrayCollection
* @return array
*/
public function findEntries($userId, $isArchived = null, $isStarred = null, $isDeleted = null, $sort = 'created', $order = 'ASC')
{
@ -126,6 +126,6 @@ class EntryRepository extends EntityRepository
return $qb
->getQuery()
->getResult(Query::HYDRATE_ARRAY);
->getResult();
}
}