mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
Fixed: when counting doc generator template by entity, take 'active'
into account
This commit is contained in:
parent
63f3010395
commit
e107e39ffd
@ -36,6 +36,7 @@ final class DocGeneratorTemplateRepository implements ObjectRepository
|
|||||||
$builder
|
$builder
|
||||||
->select('count(t)')
|
->select('count(t)')
|
||||||
->where('t.entity LIKE :entity')
|
->where('t.entity LIKE :entity')
|
||||||
|
->andWhere($builder->expr()->eq('t.active', "'TRUE'"))
|
||||||
->setParameter('entity', addslashes($entity));
|
->setParameter('entity', addslashes($entity));
|
||||||
|
|
||||||
return $builder->getQuery()->getSingleScalarResult();
|
return $builder->getQuery()->getSingleScalarResult();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user