-
Notifications
You must be signed in to change notification settings - Fork 553
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
OHRM5X-1766: Improve doctrine connection for the application #1506
Conversation
$isDevMode = false; | ||
$proxyDir = Config::get(Config::DOCTRINE_PROXY_DIR); | ||
$cache = null; | ||
$useSimpleAnnotationReader = false; | ||
$cache = new ArrayAdapter(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix for #1471
'driver' => 'pdo_mysql', | ||
'url' => "mysql://$dbUser:$dbPass@$dbHost:$dbPort/$dbName", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix for:
Fatal error: Uncaught Doctrine\DBAL\Exception: Malformed parameter "url". in src/vendor/doctrine/dbal/src/DriverManager.php:306
and #1501 , #1504, #1344 issues
Quick fix:
Inside Doctrine.zip, there is a PHP file Doctrine.php
.
Find current Doctrine.php
inside <orangehrm>/src/lib/orm/
directory. And replace it with new file which is taken from the ZIP.
@@ -14,7 +14,7 @@ jobs: | |||
strategy: | |||
fail-fast: false | |||
matrix: | |||
database: [ 'mysql:5.5', 'mysql:5.6', 'mysql:5.7', 'mariadb:5.5', 'mariadb:10.0', 'mariadb:10.1', 'mariadb:10.2', 'mariadb:10.3', 'mariadb:10.4', 'mariadb:10.5', 'mariadb:10.6', 'mariadb:10.7', 'mariadb:10.8', 'mariadb:10.9' ] | |||
database: [ 'mysql:5.5', 'mysql:5.6', 'mysql:5.7', 'mysql:8.0', 'mariadb:5.5', 'mariadb:10.0', 'mariadb:10.1', 'mariadb:10.2', 'mariadb:10.3', 'mariadb:10.4', 'mariadb:10.5', 'mariadb:10.6', 'mariadb:10.7', 'mariadb:10.8', 'mariadb:10.9' ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MySQL 8.0 test action took longer than others (1.5 hours while others took 10 to 15 mins)
->select('groups.id') | ||
->from('ohrm_i18n_group', 'groups') | ||
->andWhere('groups.name = :name') | ||
->select('ohrm_i18n_group.id') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix for #1521
…rm#1506) * OHRM5X-1832: Bump MySQL max support to 8.0
No description provided.