public function __construct($title, $builder) { $this->builder = clone $builder; $this->title = $title; //Remove offset from builder because a count doesn't work in combination with an offset $this->builder->offset = null; }