Skip to content

annotation Athena::ORM::Annotations::PostRemove #

Marks a method to be called after the entity is deleted, during AORM::EntityManager#flush.

@[AORMA::PostRemove]
def delete_avatar_file(event : AORM::Events::PostRemoveEventArgs(User)) : Nil
  # ...
end

See AORMA::PrePersist for the rules every lifecycle callback follows.