title: How to mass update in scala-activerecord
body: <p>I want to update multiple record in a database with a single SQL query. There is a method <code>forceUpdate</code>, which can be used like this:</p>
  
  <pre><code>case class Document(size: Int, var status: String) extends ActiveRecord
  object Document extends ActiveRecordCompanion[Document]
  
  Document.forceUpdate(_.size &lt; 100)(_.status := "small")
  </code></pre>
  
  <p>However, it bypasses the validations and hooks like <code>beforeSave()</code>. I tried underlying squeryl:</p>
  
  <pre><code>Document.inTransaction {
    update(Document.table)(d =&gt;
      where(d.size &lt; 100)
      set(d.status := "small")
    )
  }
  </code></pre>
  
  <p>But it also ignores hooks.</p>
  
  <p>I can't seem to find a method that updates multiple documents at once, while using hooks and validations. Is there at least some workaround?</p>