src/Collection.php
public function dont_remember( Closure $callback ) {

		$prev = $this->keep_memory( false );

		$callback( $this );

		$this->keep_memory( $prev );
	}
public function dont_remember( Closure $callback ) {

		$prev = $this->keep_memory( false );

		$callback( $this );

		$this->keep_memory( $prev );
	}
Perform operations on the collection without remembering them.

@since 2.0

@param Closure $callback This ModelCollection is passed as the first parameter.