mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 01:25:39 +00:00
remove article drafts (feature moved to new releases)
This commit is contained in:
parent
da1e869be5
commit
ea9f7f1589
35 changed files with 9 additions and 4606 deletions
|
|
@ -65,20 +65,4 @@ class ActivityRepository extends ServiceEntityRepository
|
|||
->getSingleScalarResult()
|
||||
;
|
||||
}
|
||||
|
||||
public function findActivitiesTotalByArticleId(
|
||||
int $articleId,
|
||||
array $whitelist
|
||||
): int
|
||||
{
|
||||
return $this->createQueryBuilder('a')
|
||||
->select('count(a.id)')
|
||||
->where('a.articleId = :articleId')
|
||||
->andWhere('a.event IN (:event)')
|
||||
->setParameter(':articleId', $articleId)
|
||||
->setParameter(':event', $whitelist)
|
||||
->getQuery()
|
||||
->getSingleScalarResult()
|
||||
;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue