Skip to content

Instantly share code, notes, and snippets.

@caefer
Created March 23, 2011 20:09
Show Gist options
  • Save caefer/883846 to your computer and use it in GitHub Desktop.
Save caefer/883846 to your computer and use it in GitHub Desktop.
<?php
// ...
$qb->add('where', 'x.date = :date')
->setParameter('date', new \DateTime('+2 days'));
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment