src/QueryFactory/FindObjectsQueryFactory.php 1 location
|
@@ 39-42 (lines=4) @@
|
36 |
|
|
37 |
|
$countSql = 'SELECT COUNT(DISTINCT '.implode(', ', $pkColumnNames).') FROM MAGICJOIN('.$this->mainTable.')'; |
38 |
|
|
39 |
|
if (!empty($this->filterString)) { |
40 |
|
$sql .= ' WHERE '.$this->filterString; |
41 |
|
$countSql .= ' WHERE '.$this->filterString; |
42 |
|
} |
43 |
|
|
44 |
|
if (!empty($orderString)) { |
45 |
|
$sql .= ' ORDER BY '.$orderString; |
src/QueryFactory/FindObjectsFromSqlQueryFactory.php 1 location
|
@@ 87-90 (lines=4) @@
|
84 |
|
$sql .= $joinSql; |
85 |
|
} |
86 |
|
|
87 |
|
if (!empty($this->filterString)) { |
88 |
|
$sql .= ' WHERE '.$this->filterString; |
89 |
|
$countSql .= ' WHERE '.$this->filterString; |
90 |
|
} |
91 |
|
|
92 |
|
if (!empty($orderString)) { |
93 |
|
$sql .= ' ORDER BY '.$orderString; |