mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +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
|
||||
->select('count(t)')
|
||||
->where('t.entity LIKE :entity')
|
||||
->andWhere($builder->expr()->eq('t.active', "'TRUE'"))
|
||||
->setParameter('entity', addslashes($entity));
|
||||
|
||||
return $builder->getQuery()->getSingleScalarResult();
|
||||
|
Loading…
x
Reference in New Issue
Block a user