src/ActiveDoctrine/Selector/AbstractSelector.php
public function getParams()
    {
        //exit early if no types are set
        if (empty($this->types)) {
            return $this->params;
        }

        $params = [];
        $num_params = count($this->params);
        for ($i = 0; $i < $num_params; $i++) {
            $value = $this->params[$i];
            $column = $this->param_columns[$i];

            if (isset($this->types[$column])) {
                $params[] = $this->connection->convertToDatabaseValue($value, $this->types[$column]);
                continue;
            }
            $params[] = $value;
        }

        return $params;
    }
public function getParams()
    {
        //exit early if no types are set
        if (empty($this->types)) {
            return $this->params;
        }

        $params = [];
        $num_params = count($this->params);
        for ($i = 0; $i < $num_params; $i++) {
            $value = $this->params[$i];
            $column = $this->param_columns[$i];

            if (isset($this->types[$column])) {
                $params[] = $this->connection->convertToDatabaseValue($value, $this->types[$column]);
                continue;
            }
            $params[] = $value;
        }

        return $params;
    }
public function getParams ( ) { //exit early if no types are set if ( empty ( $ this -> types ) ) { return $ this -> params ; } $ params = [ ] ; $ num_params = count ( $ this -> params ) ; for ( $ i = 0 ; $ i < $ num_params ; $ i ++ ) { $ value = $ this -> params [ $ i ] ; $ column = $ this -> param_columns [ $ i ] ; if ( isset ( $ this -> types [ $ column ] ) ) { $ params [ ] = $ this -> connection -> convertToDatabaseValue ( $ value , $ this -> types [ $ column ] ) ; continue ; } $ params [ ] = $ value ; } return $ params ; }
Get the parameters to be used in the prepared query, converted
to the correct database type.

@return array The parameters
Get the parameters to be used in the prepared query converted to the correct database type .