Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 2 个域模型
class Project { static hasMany = [quotes:Quote] } class Quote { }
问题:
当我删除项目时,我需要删除与该项目关联的所有引号。我怎样才能实现它?
在您的 Quote 课程中,我会添加:
static belongsTo = [project: Project]