File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ public function searchQuery($options)
14
14
$ qb = $ this ->createQueryBuilder ('a ' );
15
15
16
16
if ($ options ['blog_id ' ]) {
17
- $ qb ->where ()->descendant (' a. ' . $ options ['blog_id ' ]);
17
+ $ qb ->where ()->descendant ($ options ['blog_id ' ], ' a ' );
18
18
}
19
19
20
- $ qb ->orderBy ()->descending ()->field ('a.date ' );
20
+ $ qb ->orderBy ()->desc ()->field ('a.date ' );
21
21
return $ qb ->getQuery ();
22
22
}
23
23
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public function getWeightedTags($blogId)
18
18
{
19
19
$ qb = $ this ->postRep ->createQueryBuilder ('a ' );
20
20
$ qb ->select ('tags ' );
21
- $ qb ->where ()->descendant ('a ' , $ blogId ); // select only children of given blog
21
+ $ qb ->where ()->descendant ($ blogId , 'a ' ); // select only children of given blog
22
22
$ q = $ qb ->getQuery ();
23
23
$ res = $ q ->getPhpcrNodeResult ();
24
24
$ rows = $ res ->getRows ();
You can’t perform that action at this time.
0 commit comments