title: Grails rollback withTransaction on save
body: <p>I'm testing <code>withTransaction</code> but I got some problem. Why after I saved an object, I cannot rollback it? For example</p>
  
  <pre><code>Domain1 obj1 = new Domain(name: "obj1")
  Domain1.withTransaction { status -&gt;
      if(obj1.save(flush:true)){ //save the object, has no errors
          Domain2 obj2 = new Domain(name: asdasd) // making error happen
          if(!obj2.save(flush:true)){ // dont save, because its not string
              status.setRollbackOnly() // rollback the obj1
          }
      } else{
      throw new PersistenceException("error", obj1.errors)
      }
  }
  </code></pre>
  
  <p>There's another way to roll back the <code>save()?</code></p>