private function stackReflections()
    {
        foreach ($this->reflections as &$reflection) {
            foreach ($reflection['fields'] as &$field) {
                if (!empty($field['relatedToSection'])) {
                    if (isset($this->reflections[$field['relatedToSection']])) {
                        $field['sectionDetails'] = $this->reflections[$field['relatedToSection']];
                    }
                }
            }
        }
    }
private function stackReflections()
    {
        foreach ($this->reflections as &$reflection) {
            foreach ($reflection['fields'] as &$field) {
                if (!empty($field['relatedToSection'])) {
                    if (isset($this->reflections[$field['relatedToSection']])) {
                        $field['sectionDetails'] = $this->reflections[$field['relatedToSection']];
                    }
                }
            }
        }
    }
private function stackReflections ( ) { foreach ( $ this -> reflections as & $ reflection ) { foreach ( $ reflection [ 'fields' ] as & $ field ) { if ( ! empty ( $ field [ 'relatedToSection' ] ) ) { if ( isset ( $ this -> reflections [ $ field [ 'relatedToSection' ] ] ) ) { $ field [ 'sectionDetails' ] = $ this -> reflections [ $ field [ 'relatedToSection' ] ] ; } } } } }
Nesting of reflected entities
Nesting of reflected entities