```
// src/Repository/AppointmentRepository.php
public function findTodayForInstructor($instructor): array
{
$today = new \\DateTimeImmutable('today');
return $this-\>createQueryBuilder('a')
-\>where('a.instructor = :instructor')
-\>andWhere('a.date = :today')
-\>setParameter('instructor', $instructor)
-\>setParameter('today', $today-\>format('Y-m-d'))
-\>orderBy('a.startTime', 'ASC')
-\>getQuery()
-\>getResult();
}
```