|Re: [Flock] Delete and element and all of its children [message #1105826 is a reply to message #1102103]
||Tue, 10 September 2013 06:21
| Louis Rose
Registered: July 2009
Location: York, United Kingdom
I've now had a chance to look at this again, and I realise that calling .equivalent() in the guard of a delete (or a retype) statement will never work! This is because it is the delete and retype statements that Flock uses to build up its equivalence table.
Instead, you can use the following:
when : owner.isKindOf(OwnerType)
Or, if the delete rule for OwnerType contains a guard:
delete OwnerType when : self.X
delete ChildType when : owner.isKindOf(OwnerType) and owner.X
Hope that helps!
[Updated on: Tue, 10 September 2013 06:21]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01648 seconds