def author = Author.findByName("Stephen King")
def book = author.books.find { it.title == 'The Stand' }
author.removeFromBooks(book)
removeFrom*
Purpose
Opposite of the addTo method in that it removes instances from an association.
(Quick Reference)
removeFrom*PurposeOpposite of the addTo method in that it removes instances from an association. Examples
|
Command LineConstraintsControllersDatabase MappingDomain ClassesPlug-insServicesServlet API |