Skip to content
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

Merged
merged 2 commits into from
Nov 3, 2022

Conversation

RajithaKumara
Copy link
Member

No description provided.

$isDevMode = false;
$proxyDir = Config::get(Config::DOCTRINE_PROXY_DIR);
$cache = null;
$useSimpleAnnotationReader = false;
$cache = new ArrayAdapter();
Copy link
Member Author

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",
Copy link
Member Author

@RajithaKumara RajithaKumara Oct 25, 2022

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' ]
Copy link
Member Author

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)

@RajithaKumara RajithaKumara marked this pull request as ready for review November 3, 2022 06:51
@RajithaKumara RajithaKumara merged commit 8486a42 into orangehrm:5.3 Nov 3, 2022
->select('groups.id')
->from('ohrm_i18n_group', 'groups')
->andWhere('groups.name = :name')
->select('ohrm_i18n_group.id')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix for #1521

Super-Chama pushed a commit to Super-Chama/orangehrm that referenced this pull request Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant