I have to following tables:
Registration
id int
created datetime
Activity
id int
startdate datetime
Now I want to add this condition to my SQL query:
(Registration.created + 7 days) <= Activity.startdate
How can I do this in Doctrine 2? I prefer a database independent solution.