-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System/Database/Database.php::loadForge returns Connection when using custom DBDriver #1225
Comments
Reading that source line, loadForge(...) should return a Forge object if the $db connection driver name doesn't contain a backslash, and a Connection object if it does. If loadForge(...) isn't behaving as expected, can you provide some sample code? Thanks. |
The purpose of loadForge is "Create a new Forge instance for the current database type". I hope this explains the issue. |
I believe that should return a Forge instance always. It looks like a flub from when I ported from CI3. Will fix. |
Fix error where Forge class might not be returned. Fixes #1225
I'm extending the DBDrivers and therefore specifying my own namespace in database config. But.. Then this line will return a Connection class. I guess it should always return the Forge? :-)
The text was updated successfully, but these errors were encountered: