public function distinct($column, array $criteria = array(),
            $return = Table::RETURN_MODEL) {
        $this->current = self::OP_SELECT;
        $this->setExpectedResult($return, true);
        $this->targetColumns($column);
        $this->query = 'SELECT DISTINCT `' . $this->name . '`.`' . Util::camelTo_($column) . '` as ' . Util::_toCamel($column) . ' FROM `' . $this->name . '` ' . $this->joinQuery;
        $this->where($criteria);

        return $this->execute();
    }
public function distinct($column, array $criteria = array(),
            $return = Table::RETURN_MODEL) {
        $this->current = self::OP_SELECT;
        $this->setExpectedResult($return, true);
        $this->targetColumns($column);
        $this->query = 'SELECT DISTINCT `' . $this->name . '`.`' . Util::camelTo_($column) . '` as ' . Util::_toCamel($column) . ' FROM `' . $this->name . '` ' . $this->joinQuery;
        $this->where($criteria);

        return $this->execute();
    }
public function distinct ( $ column , array $ criteria = array ( ) , $ return = Table :: RETURN_MODEL ) { $ this -> current = self :: OP_SELECT ; $ this -> setExpectedResult ( $ return , true ) ; $ this -> targetColumns ( $ column ) ; $ this -> query = 'SELECT DISTINCT `' . $ this -> name . '`.`' . Util :: camelTo_ ( $ column ) . '` as ' . Util :: _toCamel ( $ column ) . ' FROM `' . $ this -> name . '` ' . $ this -> joinQuery ; $ this -> where ( $ criteria ) ; return $ this -> execute ( ) ; }
Gets the distinct values of a column
@param string $column
@param array $criteria Array with values \DBScribe\Row or array of [column => value]
@return ArrayCollection
Gets the distinct values of a column