protected function backupFieldsForCount()
    {
        foreach (array('orders', 'limit', 'offset') as $field) {
            $this->backups[$field] = $this->{$field};

            $this->{$field} = null;
        }

    }
protected function backupFieldsForCount()
    {
        foreach (array('orders', 'limit', 'offset') as $field) {
            $this->backups[$field] = $this->{$field};

            $this->{$field} = null;
        }

    }
protected function backupFieldsForCount ( ) { foreach ( array ( 'orders' , 'limit' , 'offset' ) as $ field ) { $ this -> backups [ $ field ] = $ this -> { $ field } ; $ this -> { $ field } = null ; } }
Backup certain fields for a pagination count.

@return void
Backup certain fields for a pagination count .