46 public function addKeyValues($keyValues, $classname, $separator =
' AND ') {
47 if (! \is_array($keyValues)) {
48 $this->condition = $this->
parseKey($keyValues, $classname);
50 if ((\array_keys($keyValues) === \range(0, \count($keyValues) - 1))) {
51 if (isset($classname)) {
53 if (\is_array($keys)) {
54 $keyValues = \array_combine($keys, $keyValues);
59 $this->invertedParams=
false;
60 foreach ($keyValues as $key => $value) {
62 $this->params[] = $value;
63 $retArray[] = SqlUtils::$quote . $key . SqlUtils::$quote .
' = ?';
66 $this->condition = \implode($separator, $retArray);