Apache Cayenne > Index > Cayenne FAQ > Delete Object In To-Many Relationship
In the modeler tool, set the to-many relationship Delete Rule to be "Nullify" for each relationship the object appears in.
See CayenneModeler Guide -> Modeling Object Layer -> Delete Rules for more information and more options.