/* @throws PntError */ function recurseDelete() { $clsDes = $this->getClassDescriptor(); $props = $clsDes->getMultiValuePropertyDescriptors(); forEach (array_keys($props) as $propName) { $prop = $props[$propName]; if ($prop->getRecurseDelete()) { $values = $prop->getValueFor($this, false); forEach(array_keys($values) as $key) $values[$key]->delete(); } } } |