Stuck on something...if I have a collection foo and I loop through that collection to do updates on each record in the loop, how do I make it so that each record in the collection is in it's own transaction? The goal is if record 1 in the collection fails on a save that record 2 will still be processed.
Would I use a withTransaction?
something like this
foo.each { line ->
foo.withTranaction{
}
}
Would I use a withTransaction?
something like this
foo.each { line ->
foo.withTranaction{
}
}