ion" id="events">
<h1>Events<a class="headerlink" href="#events" title="Permalink to this headline">¶</a></h1>
<p>There are situations where you might want to react before or after an entity is
modified. For example hashing the password of an user object instead of storing
it directly in clear text in the database. Or you want to get an E-Mail every
time someone deletes a library object.</p>
<p>This is what events are for. You can define closures which are executed in
certain moments and can even interrupt