protected getColumnBindings ( $values, $position = false ) : string | ||
리턴 | string | update column names with corresponding binding substrings. |
protected function getColumnBindings($values, $position = false)
{
$bindings = array();
foreach (array_keys($values) as $name) {
$column = $this->getTableInfo()->getColumn($name)->getColumnName();
$bindings[] = $position ? $column . ' = ?' : $column . ' = :' . $name;
}
return $bindings;
}