title: Grails GORM beforeUpdate method not invoked
body: <p>I'm trying to fix an issue with my application where the <code>beforeUpdate</code> method in one of my domain classes is not invoked.</p>
  
  <p>If none of the fields <em>belonging directly to the domain class</em> are updated, then the <code>beforeUpdate</code> event isn't fired. I guess this makes sense, however I would like the code in my <code>beforeUpdate</code> method to execute even in cases where only associations of my domain class are updated.</p>
  
  <p>For instance, my domain class looks something like this:</p>
  
  <pre><code>class Organisation {
      String name
      Location location
  
      def beforeUpdate() {
          //do some stuff with the location when it's updated
      }
  }
  </code></pre>
  
  <p>If the parameters map submitted from the form contains the <code>name</code> parameter, then <code>beforeUpdate</code> is fired. If the parameters map only contains <code>location</code> parameters, then it is not.</p>
  
  <p>Is there any way to make Grails fire <code>beforeUpdate</code> even if I'm only updating associations?</p>