Guides
Tutorials
Trait for filtering the collection by numeric values.
trait ApiPlatform\Doctrine\Common\Filter\NumericFilterTrait
{
public getDescription(string $resourceClass): array
protected getType(null|string $doctrineType): string
protected getProperties(): array
protected getLogger(): Psr\Log\LoggerInterface
protected normalizePropertyName(string $property): string
protected isNumericField(string $property, string $resourceClass): bool
protected normalizeValues($value, string $property): array
protected isNumericArray(array $values): 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\NumericFilterTrait
{
public getDescription(string $resourceClass): array
protected getType(null|string $doctrineType): string
protected getProperties(): array
protected getLogger(): Psr\Log\LoggerInterface
protected normalizePropertyName(string $property): string
protected isNumericField(string $property, string $resourceClass): bool
protected normalizeValues($value, string $property): array
protected isNumericArray(array $values): 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
}
public getDescription(string $resourceClass): array
public getDescription(string $resourceClass): array
resourceClass | string |
array
Gets the PHP type corresponding to this Doctrine type.
protected getType(null|string $doctrineType): string
protected getType(null|string $doctrineType): string
doctrineType | string |
string
protected getProperties(): array
protected getProperties(): array
array
protected getLogger(): Psr\Log\LoggerInterface
protected getLogger(): Psr\Log\LoggerInterface
Psr\Log\LoggerInterface
protected normalizePropertyName(string $property): string
protected normalizePropertyName(string $property): string
property | string |
string
Determines whether the given property refers to a numeric field.
protected isNumericField(string $property, string $resourceClass): bool
protected isNumericField(string $property, string $resourceClass): bool
property | string | |
resourceClass | string |
bool
protected normalizeValues($value, string $property): array
protected normalizeValues($value, string $property): array
value | ||
property | string |
array
protected isNumericArray(array $values): bool
protected isNumericArray(array $values): bool
values | array |
bool
protected getManagerRegistry(): Doctrine\Persistence\ManagerRegistry
protected getManagerRegistry(): Doctrine\Persistence\ManagerRegistry
Doctrine\Persistence\ManagerRegistry
Determines whether the given property is mapped.
protected isPropertyMapped(string $property, string $resourceClass, bool $allowAssociation): bool
protected 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): bool
protected isPropertyNested(string $property, string $resourceClass): bool
property | string | |
resourceClass | string |
bool
Determines whether the given property is embedded.
protected isPropertyEmbedded(string $property, string $resourceClass): bool
protected 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): array
protected 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): string
protected 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\ClassMetadata
protected 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\ClassMetadata
protected getClassMetadata(string $resourceClass): Doctrine\Persistence\Mapping\ClassMetadata
resourceClass | string |
Doctrine\Persistence\Mapping\ClassMetadata