Skip to content

Commit

Permalink
Merge pull request #4517 from morozov/deprecate-connection-expr
Browse files Browse the repository at this point in the history
Deprecate Connection::$_expr
  • Loading branch information
morozov committed Feb 28, 2021
2 parents dac121d + 4c62733 commit 96b4319
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Upgrade to 3.1

## Deprecated `Connection::$_expr`

The usage of `Connection::$_expr` by extending classes is deprecated. Use `Connection::getExpressionBuilder()` instead.
Do not rely on the same builder instance being returned by each invocation.

# Upgrade to 3.0

## BC BREAK: leading colon in named parameter names not supported
Expand Down
6 changes: 5 additions & 1 deletion src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ class Connection
/** @var EventManager */
protected $_eventManager;

/** @var ExpressionBuilder */
/**
* @deprecated Use {@link getExpressionBuilder()} instead.
*
* @var ExpressionBuilder
*/
protected $_expr;

/**
Expand Down

0 comments on commit 96b4319

Please sign in to comment.