forked from wallabag/wallabag
Fix tags count in menu
Move enable cache for Tag in the Entity because function `find*` should return result and not a Query
This commit is contained in:
@ -322,9 +322,7 @@ class WallabagRestController extends FOSRestController
|
||||
|
||||
$tags = $this->getDoctrine()
|
||||
->getRepository('WallabagCoreBundle:Tag')
|
||||
->findAllTags($this->getUser()->getId())
|
||||
->getQuery()
|
||||
->getResult();
|
||||
->findAllTagsWithEntries($this->getUser()->getId());
|
||||
|
||||
$json = $this->get('serializer')->serialize($tags, 'json');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user