Grails BootStrap: No signature of method: *.addTo* applicable
问题 I have two domain classes: User class User { String username String password String email Date dateCreated Date lastUpdated // static belongsTo = [profile: Profile] static constraints = { username size: 3..20, unique: true, nullable: false, validator: { _username -> _username.toLowerCase() == _username } password size: 6..100, nullable: false, validator: { _password, user -> _password != user.username } email email: true, blank: false // profile nullable: true } } and Profile: class Profile {