private static function getContentValue(AbstractClassContent $content, $indexedElement)
    {
        $value = $owner = $content;
        $elements = explode('->', $indexedElement);
        foreach ($elements as $element) {
            $value = $value->getData($element);
            if (!$value instanceof AbstractClassContent) {
                break;
            }

            if (!self::$em->contains($value)) {
                $value = self::$em->find(get_class($value), $value->getUid());
            }

            $owner = $value;
        }

        return [$value, $owner];
    }
private static function getContentValue(AbstractClassContent $content, $indexedElement)
    {
        $value = $owner = $content;
        $elements = explode('->', $indexedElement);
        foreach ($elements as $element) {
            $value = $value->getData($element);
            if (!$value instanceof AbstractClassContent) {
                break;
            }

            if (!self::$em->contains($value)) {
                $value = self::$em->find(get_class($value), $value->getUid());
            }

            $owner = $value;
        }

        return [$value, $owner];
    }
private static function getContentValue ( AbstractClassContent $ content , $ indexedElement ) { $ value = $ owner = $ content ; $ elements = explode ( '->' , $ indexedElement ) ; foreach ( $ elements as $ element ) { $ value = $ value -> getData ( $ element ) ; if ( ! $ value instanceof AbstractClassContent ) { break ; } if ( ! self :: $ em -> contains ( $ value ) ) { $ value = self :: $ em -> find ( get_class ( $ value ) , $ value -> getUid ( ) ) ; } $ owner = $ value ; } return [ $ value , $ owner ] ; }
Returns the indexed value of an element.

@param  AbstractClassContent $content        The content flushed.
@param  string               $indexedElement The parameter to index.

@return array                                An array of the element value and the content owner.
Returns the indexed value of an element .