Prado\Data\Common\TDbCommandBuilder::bindColumnValues PHP Метод

bindColumnValues() публичный Метод

Bind the name-value pairs of $values where the array keys correspond to column names.
public bindColumnValues ( $command, $values )
    public function bindColumnValues($command, $values)
    {
        foreach ($values as $name => $value) {
            $column = $this->getTableInfo()->getColumn($name);
            if ($value === null && $column->getAllowNull()) {
                $command->bindValue(':' . $name, null, PDO::PARAM_NULL);
            } else {
                $command->bindValue(':' . $name, $value, $column->getPdoType());
            }
        }
    }