src/Queries/Mysql/Select.php 1 location
|
@@ 221-227 (lines=7) @@
|
218 |
|
/** |
219 |
|
* {@inheritdoc} |
220 |
|
*/ |
221 |
|
public function __invoke() |
222 |
|
{ |
223 |
|
$statement = $this->table->getDatabase()->execute((string) $this, $this->marks); |
224 |
|
$statement->setFetchMode(PDO::FETCH_ASSOC); |
225 |
|
|
226 |
|
return $statement; |
227 |
|
} |
228 |
|
|
229 |
|
/** |
230 |
|
* {@inheritdoc} |
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. |