@@ 240-244 (lines=5) @@ | ||
237 | if (in_array($fieldName, $this->fields)) { |
|
238 | ||
239 | $salt = ''; |
|
240 | foreach ($this->qBuilder->getParameters() as $parameter) { |
|
241 | if ($parameter->getName() == 'field_' . $fieldName) { |
|
242 | $salt = '_' . rand(111, 999); |
|
243 | } |
|
244 | } |
|
245 | ||
246 | // filtering[foo|bar] |
|
247 | // $filterAndOperator[0] = 'foo' |
|
@@ 303-307 (lines=5) @@ | ||
300 | $fieldName = $this->parser->camelize($embeddedFields[count($embeddedFields)-1]); |
|
301 | ||
302 | $salt = ''; |
|
303 | foreach ($this->qBuilder->getParameters() as $parameter) { |
|
304 | if ($parameter->getName() == 'field_' . $fieldName) { |
|
305 | $salt = '_' . rand(111, 999); |
|
306 | } |
|
307 | } |
|
308 | ||
309 | if (isset($filterAndOperator[1]) && 'list' == $filterAndOperator[1]) { |
|
310 | $whereCondition = $relationEntityAlias.'.'.$fieldName.' '.$operator['meta'].' (:field_'.$fieldName . $salt . ')'; |
|
@@ 350-354 (lines=5) @@ | ||
347 | if (in_array($fieldName, $this->fields)) { |
|
348 | ||
349 | $salt = ''; |
|
350 | foreach ($this->qBuilder->getParameters() as $parameter) { |
|
351 | if ($parameter->getName() == 'field_' . $fieldName) { |
|
352 | $salt = '_' . rand(111, 999); |
|
353 | } |
|
354 | } |
|
355 | ||
356 | if ($salt == '') { |
|
357 | $salt = '_' . rand(111, 999); |
|
@@ 428-432 (lines=5) @@ | ||
425 | $fieldName = $this->parser->camelize($embeddedFields[count($embeddedFields)-1]); |
|
426 | ||
427 | $salt = ''; |
|
428 | foreach ($this->qBuilder->getParameters() as $parameter) { |
|
429 | if ($parameter->getName() == 'field_' . $fieldName) { |
|
430 | $salt = '_' . rand(111, 999); |
|
431 | } |
|
432 | } |
|
433 | ||
434 | if ($salt == '') { |
|
435 | $salt = '_' . rand(111, 999); |