public function setDistinct($distinct = true)
    {
        $this->distinct = $distinct;
        $this->queryBuilder->distinct($distinct);
        return $this;
    }
public function setDistinct($distinct = true)
    {
        $this->distinct = $distinct;
        $this->queryBuilder->distinct($distinct);
        return $this;
    }
public function setDistinct ( $ distinct = true ) { $ this -> distinct = $ distinct ; $ this -> queryBuilder -> distinct ( $ distinct ) ; return $ this ; }
Sets the DISTINCT flag for this query.

@param boolean $distinct
@return QueryInterface
@api
Sets the DISTINCT flag for this query .