public function finalizeRows()
    {
        // Fix rows LOOP_TOTAL if parseResults() did not added all resultsCollection items to the collection array
        // see https://github.com/thelia/thelia/issues/2337
        if (true === $this->countable && $this->getResultDataCollectionCount() !== $realCount = $this->getCount()) {
            foreach ($this->collection as &$item) {
                $item->set('LOOP_TOTAL', $realCount);
            }
        }
    }
public function finalizeRows()
    {
        // Fix rows LOOP_TOTAL if parseResults() did not added all resultsCollection items to the collection array
        // see https://github.com/thelia/thelia/issues/2337
        if (true === $this->countable && $this->getResultDataCollectionCount() !== $realCount = $this->getCount()) {
            foreach ($this->collection as &$item) {
                $item->set('LOOP_TOTAL', $realCount);
            }
        }
    }
public function finalizeRows ( ) { // Fix rows LOOP_TOTAL if parseResults() did not added all resultsCollection items to the collection array // see https://github.com/thelia/thelia/issues/2337 if ( true === $ this -> countable && $ this -> getResultDataCollectionCount ( ) !== $ realCount = $ this -> getCount ( ) ) { foreach ( $ this -> collection as & $ item ) { $ item -> set ( 'LOOP_TOTAL' , $ realCount ) ; } } }
Adjust the collection once all results have been added.
Adjust the collection once all results have been added .