I am using Grails web flow. I have two domain classes ProducutItem and Product. Product Item has a field called product of type Product.
I use productItem.product to reference the product. Since I am using web Flow and I dont want to make these class serializable i have to discard them after the use. But I am not able to figure out how to discard the nested product Object. I have tried productItem.disacrd() or productItem.product.discard() but they dont work