annotation Athena::ORM::Annotations::PreRemove
#
Marks a method to be called when the entity is passed to AORM::EntityManager#remove, or removed by a "remove" cascade.
@[AORMA::PreRemove]
def detach_files(event : AORM::Events::PreRemoveEventArgs(User)) : Nil
# ...
end
See AORMA::PrePersist for the rules every lifecycle callback follows.