-
Notifications
You must be signed in to change notification settings - Fork 112
Commit 4497663
Mark nullable EntityRepository methods as impure
The result of these functions depends on the underlying database state
which can change between multiple invocations. For example:
Calling find() or findOneBy() and asserting the result to be null as a
precondition of a test will generate false errors later in the test when the
underlying record is added and the method is called again
See #550 1 parent b1209a3 commit 4497663
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | + | ||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
45 | + | ||
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
0 commit comments