Select first form in list

[MAILPOET-3847]
This commit is contained in:
Brezo Cordero
2021-10-14 13:09:34 -05:00
committed by Veljko V
parent 51e03911b8
commit 3812d6c15e
2 changed files with 4 additions and 18 deletions

View File

@@ -27,22 +27,6 @@ class FormsRepository extends Repository {
->getResult();
}
/**
* @return FormEntity[]
*/
public function findAllActive(): array {
return $this->entityManager
->createQueryBuilder()
->select('f')
->from(FormEntity::class, 'f')
->where('f.status = (:enabled)')
->andWhere('f.deletedAt IS NULL')
->setParameter('enabled', FormEntity::STATUS_ENABLED)
->orderBy('f.name', 'asc')
->getQuery()
->getResult();
}
public function getNamesOfFormsForSegments(): array {
$allNonDeletedForms = $this->findAllNotDeleted();