Commit 5b68b8c
Fixed SiteAccessAwareEntityManager::find() dropping lock arguments
The decorator narrowed EntityManagerInterface::find() to two
parameters, so callers requesting a pessimistic or optimistic lock
(e.g. LockMode::PESSIMISTIC_WRITE) silently got no lock and no error.
The arguments are now forwarded to the wrapped entity manager, the
same way Doctrine\ORM\Decorator\EntityManagerDecorator does.
Added a scoped PHPStan ignore, as ObjectManager::find() declares only
two parameters in both doctrine/persistence v2 and v3.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 3295f38 commit 5b68b8c
2 files changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
| |||
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
230 | 239 | | |
231 | | - | |
| 240 | + | |
232 | 241 | | |
233 | 242 | | |
234 | 243 | | |
| |||
0 commit comments