Unable to get pdo connection after update to Laravel 10 and MongoDb\Laravel #2706
Replies: 3 comments 1 reply
-
Hi @sedwardsgt, you are correct in assuming that we wouldn't expect to use PDO for MongoDB. Could you please provide a full trace for the exception, so we can investigate the call chain and see if there's an issue? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Here is the text version
and here is a screen shot of the same Also, FWIW, we are extending the correct
|
Beta Was this translation helpful? Give feedback.
-
Sigh, this issue can be closed. It ended up being another buried model in a separate library where the extended model had been changed from Sorry to waste your time. |
Beta Was this translation helpful? Give feedback.
-
I work on a huge Laravel/Vue/MongoDb app, and I have been in the process of upgrading to Laravel 10, along with the change from
Jenssegers\Mongodb
toMongoDb\Laravel
, along with acartalyst/stripe-billing
and I got all the associate libraries updated and installed, but when I now attempt to connect to the database (or run migrations during test runs), I get an error at this code in the IlluminateConnection.php
which goes to
and then to
and since
$this->pdo
is null, it throws an error.Nothing has changed on our end. However, I do notice that in the constructor for the
MongoDb\Laravel
version ofConnect.php
. there is no$this->pdo
set:vs the overridden Illuminate version
hence the error. However, since this is Mongo, and not sql, it shouldn't be using pdo, correct? Is there something that has changed in this library that would cause this, or something I need to do different?
Beta Was this translation helpful? Give feedback.
All reactions