mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
add form to doc generation and custom form to admin template configuration
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user