This commit is contained in:
2022-05-23 15:34:24 +02:00
parent f251e6eb0d
commit 1c542e3455
5 changed files with 90 additions and 3 deletions

View File

@ -61,6 +61,16 @@ class MerParaSubRepository extends ServiceEntityRepository
->setParameter('val', $id)
->getQuery()
->getOneOrNullResult()
;
;
}
public function findOne(): ?MerParaSub
{
return $this->createQueryBuilder('m')
->orderBy('m.id', 'DESC')
->setMaxResults(1)
->getQuery()
->getOneOrNullResult()
;
}
}