Changeset 819 for trunk/grails-app/domain
- Timestamp:
- Aug 17, 2010, 3:37:15 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 8 8 [:] 9 9 .settings 10 .skip-studies
-
- Property svn:ignore
-
trunk/grails-app/domain/dbnp/studycapturing/Study.groovy
r817 r819 249 249 // This should remove the event group itself too, because of the cascading belongsTo relation 250 250 this.removeFromSamplingEvents(samplingEvent) 251 251 252 // But apparently it needs an explicit delete() too 252 253 // (Which can be verified by outcommenting this line, then SampleTests.testDeleteViaParentSamplingEvent fails … … 262 263 */ 263 264 String deleteEventGroup(EventGroup eventGroup) { 264 // TODO THIS DOESNT WORK!!!!265 println "-"266 println "-"267 println "-"268 println "-"269 println "-"270 println "REMOVING AN EVENTGROUP DOES NOT DELETE SAMPLES"271 println "-"272 println "-"273 println "-"274 println "-"275 println "-"276 277 278 279 265 String msg = "EventGroup ${eventGroup} was deleted" 280 266 … … 318 304 msg += ", sample '${it.name}' was deleted" 319 305 this.removeFromSamples( it ) 306 320 307 // Also here, contrary to documentation, an extra delete() is needed 308 // otherwise date is not properly deleted! 321 309 it.delete() 322 310 } … … 344 332 println ".remove eventGroup '${eventGroup.name}' from study '${this.title}'" 345 333 this.removeFromEventGroups(eventGroup) 334 346 335 // Also here, contrary to documentation, an extra delete() is needed 336 // otherwise cascaded deletes are not properly performed 347 337 eventGroup.delete() 348 338
Note: See TracChangeset
for help on using the changeset viewer.