Skip to content

annotation Athena::ORM::Annotations::PostUpdate #

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

@[AORMA::PostUpdate]
def clear_cache(event : AORM::Events::PostUpdateEventArgs(User)) : Nil
  # ...
end

See AORMA::PrePersist for the rules every lifecycle callback follows. Changes to the entity made by the callback aren't written by the current flush.