@@ 174-179 (lines=6) @@ | ||
171 | // Finally we'll add a binding for each values unless that value is an expression |
|
172 | // in which case we will just skip over it since it will be the query as a raw |
|
173 | // string and not as a parameterized place-holder to be replaced by the PDO. |
|
174 | foreach ($values as $index => $value) { |
|
175 | if (!$value instanceof Expression) { |
|
176 | $this->addBinding($value, 'where'); |
|
177 | $values[$index] = $this->getLastBindingKey(); |
|
178 | } |
|
179 | } |
|
180 | ||
181 | $this->wheres[] = compact('type', 'column', 'values', 'boolean'); |
|
182 | ||
@@ 404-409 (lines=6) @@ | ||
401 | */ |
|
402 | public function update(array $values) |
|
403 | { |
|
404 | foreach ($values as $index => $value) { |
|
405 | if (!$value instanceof Expression) { |
|
406 | $this->addBinding($value, 'update'); |
|
407 | $values[$index] = $this->getLastBindingKey(); |
|
408 | } |
|
409 | } |
|
410 | ||
411 | $aql = $this->grammar->compileUpdate($this, $values); |
|
412 |