Skip to content

Commit

Permalink
Undeprecate LifecycleEventArgs (doctrine#9980)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
franmomu authored and n-e-m-a-nj-a committed Jan 27, 2023
1 parent a98aa45 commit baf8e8a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,6 @@ This method has been deprecated in:

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

## Deprecated `Doctrine\ORM\Event\LifecycleEventArgs` class

It will be removed in 3.0. Use `Doctrine\Persistence\Event\LifecycleEventArgs` instead.

## Prepare split of output walkers and tree walkers

In 3.0, `SqlWalker` and its child classes won't implement the `TreeWalker`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
namespace Doctrine\Tests\ORM\Functional;

use Doctrine\Common\EventArgs;
use Doctrine\ORM\Event\LifecycleEventArgs;
use Doctrine\ORM\Event\PostFlushEventArgs;
use Doctrine\ORM\Event\PostRemoveEventArgs;
use Doctrine\ORM\Event\PostUpdateEventArgs;
use Doctrine\ORM\Events;
use Doctrine\Persistence\Event\LifecycleEventArgs;
use Doctrine\Tests\Models\Cache\Country;
use Doctrine\Tests\Models\Cache\State;
use Exception;
Expand Down

0 comments on commit baf8e8a

Please sign in to comment.