Skip to content

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

Emitted when a managed entity is passed to AORM::EntityManager#remove, or the removal cascades to it from an association mapped with cascade: ["remove"].

It's emitted immediately, before the entity is scheduled for deletion; the DELETE itself runs on the next flush. Lifecycle callbacks annotated with AORMA::PreRemove receive it.

Constructors#

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

View source