Skip to content

Instantly share code, notes, and snippets.

@oaltman
Created September 20, 2013 13:42
Show Gist options
  • Save oaltman/6637737 to your computer and use it in GitHub Desktop.
Save oaltman/6637737 to your computer and use it in GitHub Desktop.
public function getUnpublished()
{
$qb = $this->createQueryBuilder();
$query = $qb->select(array('thumbnail','show'))
->from('\App\Thumbnail\Thumbnail','thumbnail')
->from('\App\Cropper\Image','image')
->from('\App\Entity\Content\Show', 'show')
->where('show.image = image')
->andWhere('thumbnail.image = image')
->getQuery();
return $query->execute();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment