mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed doctrine middlewares
We now look directly onto the driver arguments instead of retrieving a database platform, for which we would need the database version. As we modify driver specific options there, this might be the better choice anyway
This commit is contained in:
parent
43ca543651
commit
777bfed813
3 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ class SQLiteRegexExtensionMiddlewareDriver extends AbstractDriverMiddleware
|
|||
$connection = parent::connect($params); // TODO: Change the autogenerated stub
|
||||
|
||||
//Then add the functions if we are on SQLite
|
||||
if ($this->getDatabasePlatform() instanceof SqlitePlatform) {
|
||||
if ($params['driver'] === 'pdo_sqlite') {
|
||||
$native_connection = $connection->getNativeConnection();
|
||||
|
||||
//Ensure that the function really exists on the connection, as it is marked as experimental according to PHP documentation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue