public function bindArrayValues($command, $values)
{
if ($this->hasIntegerKey($values)) {
$values = array_values($values);
for ($i = 0, $max = count($values); $i < $max; $i++) {
$command->bindValue($i + 1, $values[$i], $this->getPdoType($values[$i]));
}
} else {
foreach ($values as $name => $value) {
$prop = $name[0] === ':' ? $name : ':' . $name;
$command->bindValue($prop, $value, $this->getPdoType($value));
}
}
}