Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit baf8e8a

Browse files
franmomun-e-m-a-nj-a
authored andcommittedJan 27, 2023
Undeprecate LifecycleEventArgs (doctrine#9980)
Deprecating this class means that users using SA tools have to update their code specifying the ObjectManager implementation. Instead of this, dedicated classes for each event should be created before deprecating this class.
1 parent a98aa45 commit baf8e8a

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed
 

‎UPGRADE.md

-4
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,6 @@ This method has been deprecated in:
152152

153153
It will be removed in 3.0. Use `getObjectManager()` instead.
154154

155-
## Deprecated `Doctrine\ORM\Event\LifecycleEventArgs` class
156-
157-
It will be removed in 3.0. Use `Doctrine\Persistence\Event\LifecycleEventArgs` instead.
158-
159155
## Prepare split of output walkers and tree walkers
160156

161157
In 3.0, `SqlWalker` and its child classes won't implement the `TreeWalker`

‎tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
namespace Doctrine\Tests\ORM\Functional;
66

77
use Doctrine\Common\EventArgs;
8+
use Doctrine\ORM\Event\LifecycleEventArgs;
89
use Doctrine\ORM\Event\PostFlushEventArgs;
910
use Doctrine\ORM\Event\PostRemoveEventArgs;
1011
use Doctrine\ORM\Event\PostUpdateEventArgs;
1112
use Doctrine\ORM\Events;
12-
use Doctrine\Persistence\Event\LifecycleEventArgs;
1313
use Doctrine\Tests\Models\Cache\Country;
1414
use Doctrine\Tests\Models\Cache\State;
1515
use Exception;

0 commit comments

Comments
 (0)
Please sign in to comment.