Skip to content

Instantly share code, notes, and snippets.

@caefer
Created March 23, 2011 21:51
Show Gist options
  • Select an option

  • Save caefer/884100 to your computer and use it in GitHub Desktop.

Select an option

Save caefer/884100 to your computer and use it in GitHub Desktop.
<?php
namespace Caefer;
use Caefer\WeekAhead;
$qb = $em->createQueryBuilder();
$qb->add('select', 'x')
->add('from', 'Caefer\Entity\Experiment x')
->add('where', 'x.date = :date')
->setParameter('date', new WeekAhead('tomorrow'), \Doctrine\DBAL\Types\Type::DATETIME);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment