Property | Type | Description | |
---|---|---|---|
$iriConverter | |||
$propertyAccessor |
Method | Description | |
---|---|---|
__construct ( Doctrine\Common\Persistence\ManagerRegistry $managerRegistry, Symfony\Component\HttpFoundation\RequestStack $requestStack, ApiPlatform\Core\Api\IriConverterInterface $iriConverter, Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor = null, Psr\Log\LoggerInterface $logger = null, array $properties = null ) | ||
getDescription ( string $resourceClass ) : array |
Method | Description | |
---|---|---|
addWhereByStrategy ( string $strategy, Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $alias, string $field, string $value, boolean $caseSensitive ) | Adds where clause according to the strategy. | |
createWrapCase ( boolean $caseSensitive ) : Closure | Creates a function that will wrap a Doctrine expression according to the specified case sensitivity. | |
filterProperty ( string $property, $value, Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, string $operationName = null ) | ||
getIdFromValue ( string $value ) : mixed | Gets the ID from an IRI or a raw ID. | |
normalizeValues ( array $values ) : array | Normalize the values array. |
Method | Description | |
---|---|---|
getType ( string $doctrineType ) : string | Converts a Doctrine type in PHP type. |
public __construct ( Doctrine\Common\Persistence\ManagerRegistry $managerRegistry, Symfony\Component\HttpFoundation\RequestStack $requestStack, ApiPlatform\Core\Api\IriConverterInterface $iriConverter, Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor = null, Psr\Log\LoggerInterface $logger = null, array $properties = null ) | ||
$managerRegistry | Doctrine\Common\Persistence\ManagerRegistry | |
$requestStack | Symfony\Component\HttpFoundation\RequestStack | |
$iriConverter | ApiPlatform\Core\Api\IriConverterInterface | |
$propertyAccessor | Symfony\Component\PropertyAccess\PropertyAccessorInterface | |
$logger | Psr\Log\LoggerInterface | |
$properties | array |
protected addWhereByStrategy ( string $strategy, Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $alias, string $field, string $value, boolean $caseSensitive ) | ||
$strategy | string | |
$queryBuilder | Doctrine\ORM\QueryBuilder | |
$queryNameGenerator | ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface | |
$alias | string | |
$field | string | |
$value | string | |
$caseSensitive | boolean |
protected createWrapCase ( boolean $caseSensitive ) : Closure | ||
$caseSensitive | boolean | |
return | Closure |
protected filterProperty ( string $property, $value, Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, string $operationName = null ) | ||
$property | string | |
$queryBuilder | Doctrine\ORM\QueryBuilder | |
$queryNameGenerator | ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface | |
$resourceClass | string | |
$operationName | string |
public getDescription ( string $resourceClass ) : array | ||
$resourceClass | string | |
return | array |
protected getIdFromValue ( string $value ) : mixed | ||
$value | string | |
return | mixed |
protected normalizeValues ( array $values ) : array | ||
$values | array | |
return | array |