Fields changed in beforeUpdate not persisted
<p>In my Grails 3.1.14 app I have a domain class:</p>

<pre><code>class MyDomain {

  String text

  def beforeInsert() { beforeUpdate() }

  def beforeUpdate() {
    text = changeTextBasedOnOtherFields()
    println "&gt;&gt;&gt; $text"
    true
  }
}
</code></pre>

<p>in a controller the instance gets saved with <code>myDomain.save flush:true</code>.</p>

<p>The problem is, that the <code>text</code> property is ignored by saving, although I can see the println's output with a proper value in a console.</p>

<p>If I put the text changing code just in front of saving:</p>

<pre><code>myDomain.text = changeTextBasedOnOtherFields()
myDomain.save flush:true
</code></pre>

<p>then it works like charm!</p>

<p>Any way to solve the mistery?</p>