You've already forked symfony-playground
dates
This commit is contained in:
@ -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()
|
||||
;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user