Hi,
using Grails 1.1.1
I have domain in Grails Person. Person can be related to another Person buut they can be stand alone. this is like:
I have A as my friend and A have me as his friend
B can be stand alone (not having friend)
should I type
Person {
belongsTo = [friend:Person]
hasMany = [persons:Person]
constraints {
friend(nullable:true)
}
}
and how to delete A ?