Skip to content

Instantly share code, notes, and snippets.

@jonathanselander
Created April 3, 2012 10:19
Show Gist options
  • Save jonathanselander/2290872 to your computer and use it in GitHub Desktop.
Save jonathanselander/2290872 to your computer and use it in GitHub Desktop.
<?php
$mainTable = new Zend_Db_Expr('(' . $collection->getSelect() . ')');
$collection->getSelect()
->reset()
->from($mainTable);
$this->setCollection($collection);
return parent::_prepareCollection();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment