Skip to content

class Athena::ORM::Events::LifecycleEventArgs(T)
inherits Athena::ORM::Events::EventArgs #

Base type of the events emitted for a single entity, passed to its lifecycle callbacks.

T is the entity's class, so #entity is typed as that entity.

Direct known subclasses

Athena::ORM::Events::PostLoadEventArgs(T) Athena::ORM::Events::PostPersistEventArgs(T) Athena::ORM::Events::PostRemoveEventArgs(T) Athena::ORM::Events::PostUpdateEventArgs(T) Athena::ORM::Events::PrePersistEventArgs(T) Athena::ORM::Events::PreRemoveEventArgs(T) Athena::ORM::Events::PreUpdateEventArgs(T)

Constructors#

.new(entity : T, entity_manager : AORM::EntityManagerInterface)#

View source

Methods#

#entity : T#

Returns the entity this event is about.

View source

#entity_manager : AORM::EntityManagerInterface#

Returns the entity manager that emitted this event.

View source