public function setDistinct()
    {
        $this->removeSelectModifier(self::ALL);
        $this->addSelectModifier(self::DISTINCT);

        return $this;
    }
public function setDistinct()
    {
        $this->removeSelectModifier(self::ALL);
        $this->addSelectModifier(self::DISTINCT);

        return $this;
    }
public function setDistinct ( ) { $ this -> removeSelectModifier ( self :: ALL ) ; $ this -> addSelectModifier ( self :: DISTINCT ) ; return $ this ; }
Adds 'DISTINCT' modifier to the SQL statement.
@return $this|Criteria Modified Criteria object (for fluent API)
Adds DISTINCT modifier to the SQL statement .