|
@@ -287,8 +287,8 @@ discard block |
|
|
block discarded – undo |
|
287
|
287
|
$this->results = $stmt->fetch(\PDO::FETCH_OBJ); |
|
288
|
288
|
|
|
289
|
289
|
if(count($this->results) ){ |
|
290
|
|
- // now turn this stdClass object to the object type of calling model |
|
291
|
|
- $rows = $util->turnObject($this->className, $this->results); |
|
|
290
|
+ // now turn this stdClass object to the object type of calling model |
|
|
291
|
+ $rows = $util->turnObject($this->className, $this->results); |
|
292
|
292
|
} |
|
293
|
293
|
// Reset class variables |
|
294
|
294
|
$this->reset(); |
|
@@ -298,7 +298,7 @@ discard block |
|
|
block discarded – undo |
|
298
|
298
|
|
|
299
|
299
|
$this->results = $stmt->fetchAll(\PDO::FETCH_ASSOC); |
|
300
|
300
|
if(count($this->results) ){ |
|
301
|
|
- $rows = $util->turnObjects($this->className, $this->results); |
|
|
301
|
+ $rows = $util->turnObjects($this->className, $this->results); |
|
302
|
302
|
} |
|
303
|
303
|
// Reset class variables |
|
304
|
304
|
$this->reset(); |
Please login to merge, or discard this patch.