Guides
Tutorials
Trait for filtering the collection by given properties.
trait ApiPlatform\Doctrine\Common\Filter\SearchFilterTrait
{
public getDescription(string $resourceClass): array
protected getType(string $doctrineType): string
protected getProperties(): array
protected getLogger(): Psr\Log\LoggerInterface
protected getIriConverter(): ApiPlatform\Api\IriConverterInterface
protected getPropertyAccessor(): Symfony\Component\PropertyAccess\PropertyAccessorInterface
protected normalizePropertyName(string $property): string
protected getIdFromValue(string $value)
protected normalizeValues(array $values, string $property): array
protected hasValidValues(array $values, null|string $type): bool
protected getManagerRegistry(): Doctrine\Persistence\ManagerRegistry
protected isPropertyMapped(string $property, string $resourceClass, bool $allowAssociation): bool
protected isPropertyNested(string $property, string $resourceClass): bool
protected isPropertyEmbedded(string $property, string $resourceClass): bool
protected splitPropertyParts(string $property, string $resourceClass): array
protected getDoctrineFieldType(string $property, string $resourceClass): string
protected getNestedMetadata(string $resourceClass, array<int, string> $associations): Doctrine\Persistence\Mapping\ClassMetadata
protected getClassMetadata(string $resourceClass): Doctrine\Persistence\Mapping\ClassMetadata
}trait ApiPlatform\Doctrine\Common\Filter\SearchFilterTrait
{
public getDescription(string $resourceClass): array
protected getType(string $doctrineType): string
protected getProperties(): array
protected getLogger(): Psr\Log\LoggerInterface
protected getIriConverter(): ApiPlatform\Api\IriConverterInterface
protected getPropertyAccessor(): Symfony\Component\PropertyAccess\PropertyAccessorInterface
protected normalizePropertyName(string $property): string
protected getIdFromValue(string $value)
protected normalizeValues(array $values, string $property): array
protected hasValidValues(array $values, null|string $type): bool
protected getManagerRegistry(): Doctrine\Persistence\ManagerRegistry
protected isPropertyMapped(string $property, string $resourceClass, bool $allowAssociation): bool
protected isPropertyNested(string $property, string $resourceClass): bool
protected isPropertyEmbedded(string $property, string $resourceClass): bool
protected splitPropertyParts(string $property, string $resourceClass): array
protected getDoctrineFieldType(string $property, string $resourceClass): string
protected getNestedMetadata(string $resourceClass, array<int, string> $associations): Doctrine\Persistence\Mapping\ClassMetadata
protected getClassMetadata(string $resourceClass): Doctrine\Persistence\Mapping\ClassMetadata
}ApiPlatform\Api\IriConverterInterface $iriConverterApiPlatform\Api\IriConverterInterface $iriConverterSymfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessorSymfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessorApiPlatform\Api\IdentifiersExtractorInterface $identifiersExtractorApiPlatform\Api\IdentifiersExtractorInterface $identifiersExtractorpublic getDescription(string $resourceClass): arraypublic getDescription(string $resourceClass): array| resourceClass | string |
array
Converts a Doctrine type in PHP type.
protected getType(string $doctrineType): stringprotected getType(string $doctrineType): string| doctrineType | string |
string
protected getProperties(): arrayprotected getProperties(): arrayarray
protected getLogger(): Psr\Log\LoggerInterfaceprotected getLogger(): Psr\Log\LoggerInterfacePsr\Log\LoggerInterface
protected getIriConverter(): ApiPlatform\Api\IriConverterInterfaceprotected getIriConverter(): ApiPlatform\Api\IriConverterInterfaceApiPlatform\Api\IriConverterInterface
protected getPropertyAccessor(): Symfony\Component\PropertyAccess\PropertyAccessorInterfaceprotected getPropertyAccessor(): Symfony\Component\PropertyAccess\PropertyAccessorInterfaceSymfony\Component\PropertyAccess\PropertyAccessorInterface
protected normalizePropertyName(string $property): stringprotected normalizePropertyName(string $property): string| property | string |
string
Gets the ID from an IRI or a raw ID.
protected getIdFromValue(string $value)protected getIdFromValue(string $value)| value | string |
Normalize the values array.
protected normalizeValues(array $values, string $property): arrayprotected normalizeValues(array $values, string $property): array| values | array | |
| property | string |
array
When the field should be an integer, check that the given value is a valid one.
protected hasValidValues(array $values, null|string $type): boolprotected hasValidValues(array $values, null|string $type): bool| values | array | |
| type | string |
bool
protected getManagerRegistry(): Doctrine\Persistence\ManagerRegistryprotected getManagerRegistry(): Doctrine\Persistence\ManagerRegistryDoctrine\Persistence\ManagerRegistry
Determines whether the given property is mapped.
protected isPropertyMapped(string $property, string $resourceClass, bool $allowAssociation): boolprotected isPropertyMapped(string $property, string $resourceClass, bool $allowAssociation): bool| property | string | |
| resourceClass | string | |
| allowAssociation | bool |
bool
Determines whether the given property is nested.
protected isPropertyNested(string $property, string $resourceClass): boolprotected isPropertyNested(string $property, string $resourceClass): bool| property | string | |
| resourceClass | string |
bool
Determines whether the given property is embedded.
protected isPropertyEmbedded(string $property, string $resourceClass): boolprotected isPropertyEmbedded(string $property, string $resourceClass): bool| property | string | |
| resourceClass | string |
bool
Splits the given property into parts.Returns an array with the following keys:
protected splitPropertyParts(string $property, string $resourceClass): arrayprotected splitPropertyParts(string $property, string $resourceClass): array| property | string | |
| resourceClass | string |
array
Gets the Doctrine Type of a given property/resourceClass.
protected getDoctrineFieldType(string $property, string $resourceClass): stringprotected getDoctrineFieldType(string $property, string $resourceClass): string| property | string | |
| resourceClass | string |
string
Gets nested class metadata for the given resource.
protected getNestedMetadata(string $resourceClass, array<int, string> $associations): Doctrine\Persistence\Mapping\ClassMetadataprotected getNestedMetadata(string $resourceClass, array<int, string> $associations): Doctrine\Persistence\Mapping\ClassMetadata| resourceClass | string | |
| associations | array<int, string> |
Doctrine\Persistence\Mapping\ClassMetadata
Gets class metadata for the given resource.
protected getClassMetadata(string $resourceClass): Doctrine\Persistence\Mapping\ClassMetadataprotected getClassMetadata(string $resourceClass): Doctrine\Persistence\Mapping\ClassMetadata| resourceClass | string |
Doctrine\Persistence\Mapping\ClassMetadata