|
@@ 244-249 (lines=6) @@
|
| 241 |
|
$sql .= ' ORDER BY ' . implode(', ', $this->orderBy); |
| 242 |
|
} |
| 243 |
|
|
| 244 |
|
if (!empty($this->forUpdate)) { |
| 245 |
|
if (is_null($dbDriver)) { |
| 246 |
|
throw new \InvalidArgumentException('To get FOR UPDATE working you have to pass the DbDriver'); |
| 247 |
|
} |
| 248 |
|
$sql = $dbDriver->getDbHelper()->forUpdate($sql); |
| 249 |
|
} |
| 250 |
|
|
| 251 |
|
if (!empty($this->top)) { |
| 252 |
|
if (is_null($dbDriver)) { |
|
@@ 251-256 (lines=6) @@
|
| 248 |
|
$sql = $dbDriver->getDbHelper()->forUpdate($sql); |
| 249 |
|
} |
| 250 |
|
|
| 251 |
|
if (!empty($this->top)) { |
| 252 |
|
if (is_null($dbDriver)) { |
| 253 |
|
throw new \InvalidArgumentException('To get Limit and Top working you have to pass the DbDriver'); |
| 254 |
|
} |
| 255 |
|
$sql = $dbDriver->getDbHelper()->top($sql, $this->top); |
| 256 |
|
} |
| 257 |
|
|
| 258 |
|
if (!empty($this->limitStart) || ($this->limitStart === 0)) { |
| 259 |
|
if (is_null($dbDriver)) { |