Skip to content

Commit 0c3de59

Browse files
committed
Update DoctrineQueryFilter.php
1 parent 1ad6b97 commit 0c3de59

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

QueryFilter/DoctrineQueryFilter.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@
44

55
class DoctrineQueryFilter extends BaseQueryFilter
66
{
7+
/**
8+
* @var integer
9+
*/
10+
protected $paramNumber = 0;
11+
12+
/**
13+
* @param string $field Table field name.
14+
* @return string Param key unique name.
15+
*/
16+
public function getParamName($field)
17+
{
18+
return $field.'_'.$this->paramNumber++;
19+
}
20+
721
public function addDefaultFilter($field, $value)
822
{
923
$paramName = $this->getParamName($field);

0 commit comments

Comments
 (0)