We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello
I want to use low level db layer such as doctrine/dbal, how to config in webman?
The text was updated successfully, but these errors were encountered:
config/dbal.php
<?php return array( 'dbname' => 'mydb', 'user' => 'user', 'password' => 'secret', 'host' => 'localhost', 'driver' => 'pdo_mysql', );
<?php namespace app\support\Dbal; class Dbal { protected $instance = null; public static function instance() { if (!self::$instance) { self::$instance = \Doctrine\DBAL\DriverManager::getConnection(config('dbal')); } return self::$instance; } }
use app\support\Dbal; Dbal::instance()->query('your sql');
Sorry, something went wrong.
good, please consider add this to the document
No branches or pull requests
Hello
I want to use low level db layer such as doctrine/dbal, how to config in webman?
The text was updated successfully, but these errors were encountered: