final public function clearCollection()
    {
        $reset = [
            &$this->collection,
            &$this->collectionRaw,
        ];

        foreach ($reset as &$property) {
            $property = [];
        }
    }
final public function clearCollection()
    {
        $reset = [
            &$this->collection,
            &$this->collectionRaw,
        ];

        foreach ($reset as &$property) {
            $property = [];
        }
    }
final public function clearCollection ( ) { $ reset = [ & $ this -> collection , & $ this -> collectionRaw , ] ; foreach ( $ reset as & $ property ) { $ property = [ ] ; } }
Clears the collections - Both the raw and the normal one.

@author Benjamin Carl <opensource@clickalicious.de>
Clears the collections - Both the raw and the normal one .