add form to doc generation and custom form to admin template configuration

This commit is contained in:
2021-12-01 23:00:02 +01:00
parent 7719d2b073
commit 475b40e896
15 changed files with 484 additions and 108 deletions

View File

@@ -31,8 +31,8 @@ final class DocGeneratorTemplateRepository implements ObjectRepository
$builder
->select('count(t)')
->where('t.entities LIKE :entity')
->setParameter('entity', '%' . addslashes($entity) . '%');
->where('t.entity LIKE :entity')
->setParameter('entity', addslashes($entity));
return $builder->getQuery()->getSingleScalarResult();
}
@@ -69,8 +69,8 @@ final class DocGeneratorTemplateRepository implements ObjectRepository
$builder = $this->repository->createQueryBuilder('t');
$builder
->where('t.entities LIKE :entity')
->setParameter('entity', '%' . addslashes($entity) . '%');
->where('t.entity LIKE :entity')
->setParameter('entity', addslashes($entity));
return $builder
->getQuery()