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