We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 622cca5 + 8113241 commit a4efbd4Copy full SHA for a4efbd4
src/Storage/FluentAdapter.php
@@ -49,6 +49,10 @@ public function setConnectionName($connectionName)
49
50
protected function getConnection()
51
{
52
- return $this->resolver->connection($this->connectionName);
+ $conn = $this->resolver->connection($this->connectionName);
53
+ // maybe others have the database config for fetch mode to PDO::FETCH_ASSOC
54
+ // u'd better force it back here, or all your data fetching result will be unusable.
55
+ $conn->setFetchMode(\PDO::FETCH_OBJ);
56
+ return $conn;
57
}
-}
58
+}
0 commit comments