Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
c7906400
Unverified
Commit
c7906400
authored
Jun 11, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate Driver::getDatabase()
parent
0c8528ec
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
21 additions
and
0 deletions
+21
-0
UPGRADE.md
UPGRADE.md
+5
-0
Driver.php
lib/Doctrine/DBAL/Driver.php
+2
-0
AbstractDB2Driver.php
lib/Doctrine/DBAL/Driver/AbstractDB2Driver.php
+2
-0
AbstractMySQLDriver.php
lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php
+2
-0
AbstractOracleDriver.php
lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php
+2
-0
AbstractPostgreSQLDriver.php
lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php
+2
-0
AbstractSQLAnywhereDriver.php
lib/Doctrine/DBAL/Driver/AbstractSQLAnywhereDriver.php
+2
-0
AbstractSQLServerDriver.php
lib/Doctrine/DBAL/Driver/AbstractSQLServerDriver.php
+2
-0
AbstractSQLiteDriver.php
lib/Doctrine/DBAL/Driver/AbstractSQLiteDriver.php
+2
-0
No files found.
UPGRADE.md
View file @
c7906400
# Upgrade to 2.11
## Deprecated `Doctrine\DBAL\Driver::getDatabase()`
-
The usage of
`Doctrine\DBAL\Driver::getDatabase()`
is deprecated. Please use
`Doctrine\DBAL\Connection::getDatabase()`
instead.
-
The behavior of the SQLite connection returning the database file path as the database is deprecated and shouldn't be relied upon.
## Deprecated `Portability\Connection::PORTABILITY_{PLATFORM}` constants`
The platform-specific portability mode flags are meant to be used only by the portability layer internally to optimize
...
...
lib/Doctrine/DBAL/Driver.php
View file @
c7906400
...
...
@@ -53,6 +53,8 @@ interface Driver
/**
* Gets the name of the database connected to for this driver.
*
* @deprecated Use Connection::getDatabase() instead.
*
* @return string The name of the database.
*/
public
function
getDatabase
(
Connection
$conn
);
...
...
lib/Doctrine/DBAL/Driver/AbstractDB2Driver.php
View file @
c7906400
...
...
@@ -14,6 +14,8 @@ abstract class AbstractDB2Driver implements Driver
{
/**
* {@inheritdoc}
*
* @deprecated Use Connection::getDatabase() instead.
*/
public
function
getDatabase
(
Connection
$conn
)
{
...
...
lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php
View file @
c7906400
...
...
@@ -197,6 +197,8 @@ abstract class AbstractMySQLDriver implements Driver, ExceptionConverterDriver,
/**
* {@inheritdoc}
*
* @deprecated Use Connection::getDatabase() instead.
*/
public
function
getDatabase
(
Connection
$conn
)
{
...
...
lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php
View file @
c7906400
...
...
@@ -59,6 +59,8 @@ abstract class AbstractOracleDriver implements Driver, ExceptionConverterDriver
/**
* {@inheritdoc}
*
* @deprecated Use Connection::getDatabase() instead.
*/
public
function
getDatabase
(
Connection
$conn
)
{
...
...
lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php
View file @
c7906400
...
...
@@ -115,6 +115,8 @@ abstract class AbstractPostgreSQLDriver implements Driver, ExceptionConverterDri
/**
* {@inheritdoc}
*
* @deprecated Use Connection::getDatabase() instead.
*/
public
function
getDatabase
(
Connection
$conn
)
{
...
...
lib/Doctrine/DBAL/Driver/AbstractSQLAnywhereDriver.php
View file @
c7906400
...
...
@@ -117,6 +117,8 @@ abstract class AbstractSQLAnywhereDriver implements Driver, ExceptionConverterDr
/**
* {@inheritdoc}
*
* @deprecated Use Connection::getDatabase() instead.
*/
public
function
getDatabase
(
Connection
$conn
)
{
...
...
lib/Doctrine/DBAL/Driver/AbstractSQLServerDriver.php
View file @
c7906400
...
...
@@ -58,6 +58,8 @@ abstract class AbstractSQLServerDriver implements Driver, VersionAwarePlatformDr
/**
* {@inheritdoc}
*
* @deprecated Use Connection::getDatabase() instead.
*/
public
function
getDatabase
(
Connection
$conn
)
{
...
...
lib/Doctrine/DBAL/Driver/AbstractSQLiteDriver.php
View file @
c7906400
...
...
@@ -79,6 +79,8 @@ abstract class AbstractSQLiteDriver implements Driver, ExceptionConverterDriver
/**
* {@inheritdoc}
*
* @deprecated Use Connection::getDatabase() instead.
*/
public
function
getDatabase
(
Connection
$conn
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment