PHP Class ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\NumericFilter
Filters collection by equality of numeric properties.
For each property passed, if the resource does not have such property or if
the value is not numeric, the property is ignored.
Afficher le fichier
Open project: api-platform/core
Class Usage Examples
Méthodes publiques
Méthodes protégées
Méthode |
Description |
|
filterProperty ( string $property, $value, Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, string $operationName = null ) |
|
|
isNumericField ( string $property, string $resourceClass ) : boolean |
Determines whether the given property refers to a numeric field. |
|
Private Methods
Méthode |
Description |
|
getType ( string $doctrineType ) : string |
Gets the PHP type corresponding to this Doctrine type. |
|
Method Details
filterProperty()
protected méthode
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 |
|
getDescription()
public méthode
isNumericField()
protected méthode
Determines whether the given property refers to a numeric field.