Batch candidature 520

This commit is contained in:
2021-03-29 17:07:59 +02:00
parent 9c5dc1466b
commit a2466d344f
2 changed files with 1 additions and 2 deletions
@@ -213,7 +213,7 @@ class BatchController extends Controller
foreach ($messages as $m) {
$answer = $m->getAnswer();
if(!$answer->getStatusReponse() ){
if(!$answer->getStatusReponse() || $answer->getStatusReponse()=="A_TRAITER"){
$answer->setStatusReponse("CONTACTE");
$em->persist($answer);
$em->flush();
@@ -33,7 +33,6 @@ class MessageRepository extends \Doctrine\ORM\EntityRepository
->select('m', 'a')
->join('m.answer', 'a')
->where('m.status <> :status')
->andWhere('a.comment is null')
->setParameter(':status', 'DRAFT')
;