feat: add mailing templates and mail the confirmed teamers of selected assignments
This commit is contained in:
1 parent
6c89f1b8a9
commit
e285646bb2
57 files changed
+3525
-31
No files matched your search
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repository;
|
||||
|
||||
use App\Entity\MailingTemplate;
|
||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
|
||||
/**
|
||||
* @extends ServiceEntityRepository<MailingTemplate>
|
||||
*
|
||||
* @method MailingTemplate|null find($id, $lockMode = null, $lockVersion = null)
|
||||
* @method MailingTemplate|null findOneBy(array $criteria, array $orderBy = null)
|
||||
* @method MailingTemplate[] findAll()
|
||||
* @method MailingTemplate[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
||||
*/
|
||||
class MailingTemplateRepository extends ServiceEntityRepository
|
||||
{
|
||||
public function __construct(ManagerRegistry $registry)
|
||||
{
|
||||
parent::__construct($registry, MailingTemplate::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MailingTemplate[]
|
||||
*/
|
||||
public function findActive(): array
|
||||
{
|
||||
return $this->findBy(['deletedAt' => null], ['name' => 'ASC']);
|
||||
}
|
||||
|
||||
public function findActiveByUuid(string $uuid): ?MailingTemplate
|
||||
{
|
||||
return $this->findOneBy(['uuid' => $uuid, 'deletedAt' => null]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user