LifecycleEventArgs.php
9 months ago
ListenersInvoker.php
9 months ago
LoadClassMetadataEventArgs.php
9 months ago
OnClassMetadataNotFoundEventArgs.php
9 months ago
OnClearEventArgs.php
9 months ago
OnFlushEventArgs.php
9 months ago
PostFlushEventArgs.php
9 months ago
PostLoadEventArgs.php
9 months ago
PostPersistEventArgs.php
9 months ago
PostRemoveEventArgs.php
9 months ago
PostUpdateEventArgs.php
9 months ago
PreFlushEventArgs.php
9 months ago
PrePersistEventArgs.php
9 months ago
PreRemoveEventArgs.php
9 months ago
PreUpdateEventArgs.php
9 months ago
index.php
9 months ago
LifecycleEventArgs.php
26 lines
| 1 | <?php |
| 2 | declare (strict_types=1); |
| 3 | namespace MailPoetVendor\Doctrine\ORM\Event; |
| 4 | if (!defined('ABSPATH')) exit; |
| 5 | use MailPoetVendor\Doctrine\Deprecations\Deprecation; |
| 6 | use MailPoetVendor\Doctrine\ORM\EntityManagerInterface; |
| 7 | use MailPoetVendor\Doctrine\Persistence\Event\LifecycleEventArgs as BaseLifecycleEventArgs; |
| 8 | class LifecycleEventArgs extends BaseLifecycleEventArgs |
| 9 | { |
| 10 | public function __construct($object, EntityManagerInterface $objectManager) |
| 11 | { |
| 12 | Deprecation::triggerIfCalledFromOutside('doctrine/orm', 'https://github.com/doctrine/orm/issues/9875', 'The %s class is deprecated and will be removed in ORM 3.0. Use %s instead.', self::class, BaseLifecycleEventArgs::class); |
| 13 | parent::__construct($object, $objectManager); |
| 14 | } |
| 15 | public function getEntity() |
| 16 | { |
| 17 | Deprecation::trigger('doctrine/orm', 'https://github.com/doctrine/orm/issues/9875', 'Method %s() is deprecated and will be removed in Doctrine ORM 3.0. Use getObject() instead.', __METHOD__); |
| 18 | return $this->getObject(); |
| 19 | } |
| 20 | public function getEntityManager() |
| 21 | { |
| 22 | Deprecation::trigger('doctrine/orm', 'https://github.com/doctrine/orm/issues/9875', 'Method %s() is deprecated and will be removed in Doctrine ORM 3.0. Use getObjectManager() instead.', __METHOD__); |
| 23 | return $this->getObjectManager(); |
| 24 | } |
| 25 | } |
| 26 |