function getOnDeleteProps($cascading) { $result = array(); $clsDes = $this->getClassDescriptor(); $props = $clsDes->getMultiValuePropertyDescriptors(); forEach ($props as $propName => $prop) if ($prop->getOnDelete()) $result[$propName] = $props[$propName]; return $result; } |