|
|
@@ -126,7 +126,7 @@ class PDOStatement extends StatementDecorator
|
|
|
return $this->_statement->fetchAll(PDO::FETCH_ASSOC);
|
|
|
}
|
|
|
if ($type === static::FETCH_TYPE_OBJ) {
|
|
|
- return $this->_statement->fetch(PDO::FETCH_OBJ);
|
|
|
+ return $this->_statement->fetchAll(PDO::FETCH_OBJ);
|
|
|
}
|
|
|
|
|
|
return $this->_statement->fetchAll($type);
|