-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix support for doctrine/dbal v2 #32
Conversation
@@ -71,7 +71,12 @@ protected function _setUp() | |||
require_once $dir . "/CircularRelations/C.php"; | |||
require_once $dir . '/EntityWithUuid.php'; | |||
|
|||
$connection = DriverManager::getConnection(['driver' => 'sqlite3', 'memory' => true]); | |||
$sqliteDriver = 'sqlite3'; | |||
if (version_compare(InstalledVersions::getVersion('doctrine/orm'), '3.5', '<')) { |
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.
The driver "sqlite3" was added in https://github.com/doctrine/dbal/releases/tag/3.5.0
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.
is this change really related to the issue?
Why is this necessary?
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.
Yes, it is related since without this change tests would fail if DBAL < 3.5 is installed because the "sqlite3" driver was added in DBAL v3.5.
However, I noticed that I mixed up the package names.
I fixed the version check.
d86e9ca
to
97d2570
Compare
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.
LGTM
Fixes #30