src/Bridge/Doctrine/Common/PropertyHelperTrait.php
protected function isPropertyMapped(string $property, string $resourceClass, bool $allowAssociation = false): bool
    {
        if ($this->isPropertyNested($property, $resourceClass)) {
            $propertyParts = $this->splitPropertyParts($property, $resourceClass);
            $metadata = $this->getNestedMetadata($resourceClass, $propertyParts['associations']);
            $property = $propertyParts['field'];
        } else {
            $metadata = $this->getClassMetadata($resourceClass);
        }

        return $metadata->hasField($property) || ($allowAssociation && $metadata->hasAssociation($property));
    }
protected function isPropertyMapped(string $property, string $resourceClass, bool $allowAssociation = false): bool
    {
        if ($this->isPropertyNested($property, $resourceClass)) {
            $propertyParts = $this->splitPropertyParts($property, $resourceClass);
            $metadata = $this->getNestedMetadata($resourceClass, $propertyParts['associations']);
            $property = $propertyParts['field'];
        } else {
            $metadata = $this->getClassMetadata($resourceClass);
        }

        return $metadata->hasField($property) || ($allowAssociation && $metadata->hasAssociation($property));
    }
protected function isPropertyMapped ( string $ property , string $ resourceClass , bool $ allowAssociation = false ) : bool { if ( $ this -> isPropertyNested ( $ property , $ resourceClass ) ) { $ propertyParts = $ this -> splitPropertyParts ( $ property , $ resourceClass ) ; $ metadata = $ this -> getNestedMetadata ( $ resourceClass , $ propertyParts [ 'associations' ] ) ; $ property = $ propertyParts [ 'field' ] ; } else { $ metadata = $ this -> getClassMetadata ( $ resourceClass ) ; } return $ metadata -> hasField ( $ property ) || ( $ allowAssociation && $ metadata -> hasAssociation ( $ property ) ) ; }
Determines whether the given property is mapped.
Determines whether the given property is mapped .