Refactor creating of default form to use templates
[MAILPOET-2985]
This commit is contained in:
committed by
Veljko V
parent
4fc3d7b686
commit
14aa0b1393
@ -26,4 +26,12 @@ class FormsRepository extends Repository {
|
||||
->getQuery()
|
||||
->getResult();
|
||||
}
|
||||
|
||||
public function count(): int {
|
||||
return (int)$this->doctrineRepository
|
||||
->createQueryBuilder('f')
|
||||
->select('count(f.id)')
|
||||
->getQuery()
|
||||
->getSingleScalarResult();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user