Deprecate query() and exec() in favor of executeQuery() and executeStatement()

parent 524a23b0
......@@ -3,6 +3,8 @@
## Deprecations in the wrapper `Connection` class
1. The `executeUpdate()` method has been deprecated in favor of `executeStatement()`.
2. The `query()` method has been deprecated in favor of `executeQuery()`.
3. The `exec()` method has been deprecated in favor of `executeStatement()`.
## PDO-related classes outside of the PDO namespace are deprecated
......
......@@ -1249,6 +1249,8 @@ class Connection implements DriverConnection
/**
* Executes an SQL statement, returning a result set as a Statement object.
*
* @deprecated Use {@link executeQuery()} instead.
*
* @return \Doctrine\DBAL\Driver\Statement
*
* @throws DBALException
......@@ -1360,6 +1362,8 @@ class Connection implements DriverConnection
/**
* Executes an SQL statement and return the number of affected rows.
*
* @deprecated Use {@link executeStatement()} instead.
*
* @param string $statement
*
* @return int The number of affected rows.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment