Skip to content

Commit

Permalink
Document Parenthesis BC break.
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioBatSilva committed Apr 6, 2013
1 parent 3fef8d7 commit 8109db0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,23 @@ Before 2.4 the postFlush and onFlush events were only called when there were
actually entities that changed. Now these events are called no matter if there
are entities in the UoW or changes are found.

## Parenthesis are now considered in arithmetic expression

Before 2.4 parenthesis are not considered in arithmetic primary expression.
That's conceptually wrong, since it might result in wrong values. For example:

The DQL:

SELECT 100/(2*2) FROM MyEntity

Before 2.4 it generates the SQL:

SELECT 100/2*2 my_entity

Now parenthesis are considered, the previous DQL will generate:

SELECT (100/2*2) my_entity

This comment has been minimized.

Copy link
@stof

stof Apr 6, 2013

Member

really ?


# Upgrade to 2.3

## EntityManager#find() not calls EntityRepository#find() anymore
Expand Down

0 comments on commit 8109db0

Please sign in to comment.