Skip to content

Instantly share code, notes, and snippets.

@avalanche123
Created January 26, 2011 15:55
Show Gist options
  • Save avalanche123/796891 to your computer and use it in GitHub Desktop.
Save avalanche123/796891 to your computer and use it in GitHub Desktop.
<?php
$query = $em->createQuery('SELECT u.name FROM CmsUser u WHERE u.id IN(?1)');
$query->setParameter(1, array(1,2,3));
$usernames = $query->getResult();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment