public function bindValue(\PDOStatement $stmt, $parameter, $value, ColumnMap $cMap, $position = null)
    {
        if ($cMap->isTemporal()) {
            $value = $this->formatTemporalValue($value, $cMap);
        } elseif (is_resource($value) && $cMap->isLob()) {
            // we always need to make sure that the stream is rewound, otherwise nothing will
            // get written to database.
            rewind($value);
        }

        return $stmt->bindValue($parameter, $value, $cMap->getPdoType());
    }
public function bindValue(\PDOStatement $stmt, $parameter, $value, ColumnMap $cMap, $position = null)
    {
        if ($cMap->isTemporal()) {
            $value = $this->formatTemporalValue($value, $cMap);
        } elseif (is_resource($value) && $cMap->isLob()) {
            // we always need to make sure that the stream is rewound, otherwise nothing will
            // get written to database.
            rewind($value);
        }

        return $stmt->bindValue($parameter, $value, $cMap->getPdoType());
    }
public function bindValue ( \ PDOStatement $ stmt , $ parameter , $ value , ColumnMap $ cMap , $ position = null ) { if ( $ cMap -> isTemporal ( ) ) { $ value = $ this -> formatTemporalValue ( $ value , $ cMap ) ; } elseif ( is_resource ( $ value ) && $ cMap -> isLob ( ) ) { // we always need to make sure that the stream is rewound, otherwise nothing will // get written to database. rewind ( $ value ) ; } return $ stmt -> bindValue ( $ parameter , $ value , $ cMap -> getPdoType ( ) ) ; }
Binds a value to a positioned parameter in a statement,
given a ColumnMap object to infer the binding type.

@param \PDOStatement $stmt      The statement to bind
@param string        $parameter Parameter identifier
@param mixed         $value     The value to bind
@param ColumnMap     $cMap      The ColumnMap of the column to bind
@param null|integer  $position  The position of the parameter to bind

@return boolean
Binds a value to a positioned parameter in a statement given a ColumnMap object to infer the binding type .