How can I use the ORM to pull in Tasks where the date_start_time YEAR matches 2019?
I've tried this...
$entityType = 'Task';
$entities = $this->getEntityManager()->getRepository($entityType)->where([
'YEAR_date_start_date' => '2019'
])->find();
and I've tried this...
$entities = $this->getEntityManager()->getRepository($entityType)->where([
'YEAR(date_start_date)' => '2019'
])->find();
But neither seem to work.
I've tried this...
$entityType = 'Task';
$entities = $this->getEntityManager()->getRepository($entityType)->where([
'YEAR_date_start_date' => '2019'
])->find();
and I've tried this...
$entities = $this->getEntityManager()->getRepository($entityType)->where([
'YEAR(date_start_date)' => '2019'
])->find();
But neither seem to work.
Comment