Skip to content

Commit

Permalink
fixed getting articles by section number
Browse files Browse the repository at this point in the history
  • Loading branch information
takeit committed Sep 13, 2015
1 parent 0dac142 commit 63ebd0f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -446,11 +446,13 @@ public function getArticlesForSection($publication, $sectionNumber, $sectionLang

$queryBuilder = $em->getRepository('Newscoop\Entity\Article')
->createQueryBuilder('a')
->where('a.section = :sectionNumber')
->where('a.sectionId = :sectionNumber')
->andWhere('a.language = :sectionLanguage')
->andWhere('a.publication = :publicationId')
->setParameters(array(
'sectionNumber' => $sectionNumber,
'sectionLanguage' => $sectionLanguage,
'publicationId' => $publication,
));

$qbCount = clone $queryBuilder;
Expand Down

0 comments on commit 63ebd0f

Please sign in to comment.