I need to make a query to get the row where the active field is true or the current date is between two stored dates Itring with
$qb->andWhere('p.active = true')')
->orWhere($qb->expr()->andX(
$qb->expr()->lt('p.activationDate', 'now()'),
$qb->expr()->eq('p.deactivationDate', 'now()')
))
->setMaxResults(1);
But I get :
[Syntax Error] line 0, col 145: Error: Expected known function, got 'now'