public function setDistinct($distinct = true) { $this->distinct = $distinct; $this->queryBuilder->distinct($distinct); return $this; }