You are here

public function LifecycleEventArgs::getEntity in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/lib/Doctrine/Common/Persistence/Event/LifecycleEventArgs.php \Doctrine\Common\Persistence\Event\LifecycleEventArgs::getEntity()

Retrieves the associated entity.

Return value

object

1 call to LifecycleEventArgs::getEntity()
PreUpdateEventArgs::assertValidField in vendor/doctrine/common/lib/Doctrine/Common/Persistence/Event/PreUpdateEventArgs.php
Asserts the field exists in changeset.

File

vendor/doctrine/common/lib/Doctrine/Common/Persistence/Event/LifecycleEventArgs.php, line 65

Class

LifecycleEventArgs
Lifecycle Events are triggered by the UnitOfWork during lifecycle transitions of entities.

Namespace

Doctrine\Common\Persistence\Event

Code

public function getEntity() {
  return $this->object;
}