$qb = $conn->createQueryBuilder() ->insert('users') ->values( array( 'name' => '?' ) ) ->setValue('password', '?');
public function setValue($column, $value) { $this->sqlParts['values'][$column] = $value; return $this; }
private function setAddValues(array $serialized, QueryBuilder $qb) { $i = 0; foreach ($serialized as $column => $value) { $qb->setValue($column, '?'); $qb->setParameter($i, $value); ++$i; } }