I am trying to use the DATE_ADD function from doctrine2 but I am having trouble get it right.
DATE_ADD
I am using like this in DQL:
->andWhere(\'p
You have a typo, you have to quotes 'day'
->andWhere("p.created_at <= DATE_ADD(CURRENT_DATE(),4, 'day')")
An example here.