it is very common to use domainClass.properties = params to bind all incoming request params to a domain class object. i do not understand why this assignment automatically updates the domain object. e.g.
def update = {
def book = Book.get(1)
book.properties = params
book.discard()
}
the params assignment updates the domain object. discard method has no effect. can anyone help me?