I am trying to compare if two fields have same date. They may have different time part, but if the date is the same I count them as equal.
$q = $this->createQueryBuilder("a")
->select('c.year,c.number')
->leftJoin('a.conflict', 'c')
->where("a.awardIssuedDate = c.awardDeadlineInit")
->getQuery();
$cases = $q->getResult();
return $cases;
The fields awardIssuedDate
and awardDeadlineInit
are datetime fields. I want to compare and check if they have the same date (not necessarily the same time) but can't make it.