-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Trivial - P5
-
Affects Version/s: None
-
Component/s: Laravel
https://github.com/mongodb/laravel-mongodb/pull/3205#discussion_r1859818502
Noted that the Connection class has getMongoDB() and getMongoClient() methods that return a MongoDB\Database and MongoDB\Client, respectively. Not a fan of those names, as they smell like the legacy extension API.
I'm not sure why they couldn't just be getDatabase() and getClient(). That seems beyond the scope of this PR, though.
In 5.x:
- add Connection::getDatabase and getClient,
- deprecate Connection::getMongoDB and getMongoClient
In 6.x:
- remove Connection::getMongoDB and getMongoClient
- is related to
-
PHPORM-300 Multi-database support
-
- Closed
-