src/Bridge/Doctrine/Common/PropertyHelperTrait.php
protected function getNestedMetadata(string $resourceClass, array $associations): ClassMetadata
    {
        $metadata = $this->getClassMetadata($resourceClass);

        foreach ($associations as $association) {
            if ($metadata->hasAssociation($association)) {
                $associationClass = $metadata->getAssociationTargetClass($association);

                $metadata = $this->getClassMetadata($associationClass);
            }
        }

        return $metadata;
    }
protected function getNestedMetadata(string $resourceClass, array $associations): ClassMetadata
    {
        $metadata = $this->getClassMetadata($resourceClass);

        foreach ($associations as $association) {
            if ($metadata->hasAssociation($association)) {
                $associationClass = $metadata->getAssociationTargetClass($association);

                $metadata = $this->getClassMetadata($associationClass);
            }
        }

        return $metadata;
    }
protected function getNestedMetadata ( string $ resourceClass , array $ associations ) : ClassMetadata { $ metadata = $ this -> getClassMetadata ( $ resourceClass ) ; foreach ( $ associations as $ association ) { if ( $ metadata -> hasAssociation ( $ association ) ) { $ associationClass = $ metadata -> getAssociationTargetClass ( $ association ) ; $ metadata = $ this -> getClassMetadata ( $ associationClass ) ; } } return $ metadata ; }
Gets nested class metadata for the given resource.

@param string[] $associations
Gets nested class metadata for the given resource .