Skip to content

Instantly share code, notes, and snippets.

@adatta02
Created February 12, 2013 02:33
Show Gist options
  • Save adatta02/4759725 to your computer and use it in GitHub Desktop.
Save adatta02/4759725 to your computer and use it in GitHub Desktop.
<?php
public function init()
{
$hasMaxRecordLimit = ($this->getMaxRecordLimit() !== false);
$maxRecordLimit = $this->getMaxRecordLimit();
$cForCount = clone $this->getCriteria();
$cForCount->setOffset(0);
$cForCount->setLimit(0);
$cForCount->clearGroupByColumns();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment