src/Queries/Mysql/AggregationTrait.php 1 location
|
@@ 47-53 (lines=7) @@
|
44 |
|
/** |
45 |
|
* {@inheritdoc} |
46 |
|
*/ |
47 |
|
public function __invoke() |
48 |
|
{ |
49 |
|
$statement = $this->table->getDatabase()->execute((string) $this, $this->marks); |
50 |
|
$statement->setFetchMode(PDO::FETCH_NUM); |
51 |
|
|
52 |
|
return $statement; |
53 |
|
} |
54 |
|
|
55 |
|
/** |
56 |
|
* Build and return the query. |
src/Queries/Mysql/Select.php 1 location
|
@@ 247-253 (lines=7) @@
|
244 |
|
/** |
245 |
|
* {@inheritdoc} |
246 |
|
*/ |
247 |
|
public function __invoke() |
248 |
|
{ |
249 |
|
$statement = $this->table->getDatabase()->execute((string) $this, $this->marks); |
250 |
|
$statement->setFetchMode(PDO::FETCH_ASSOC); |
251 |
|
|
252 |
|
return $statement; |
253 |
|
} |
254 |
|
|
255 |
|
/** |
256 |
|
* {@inheritdoc} |