Hi All
I have 2 domain classes
class Book{
String name
Author author
}
class Author{
String name
}
Now if I do
Author bookAuthor=new Author("BOOk Author").save()
Book book1=new Book(name:"first book",author:bookAuthor).save()
Book book2=new Book(name:"second book",author:bookAuthor).save()
Book book3=new Book(name:"third book",author:bookAuthor).save()
Can I do something like this
book3.author=null
so that I disassociate the book fro its author without deleting it from the database
Regards
Maharaj Thak