ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\BooleanFilter::isBooleanField PHP Method

isBooleanField() protected method

Determines whether the given property refers to a boolean field.
protected isBooleanField ( string $property, string $resourceClass ) : boolean
$property string
$resourceClass string
return boolean
    protected function isBooleanField(string $property, string $resourceClass) : bool
    {
        $propertyParts = $this->splitPropertyParts($property);
        $metadata = $this->getNestedMetadata($resourceClass, $propertyParts['associations']);
        return DBALType::BOOLEAN === $metadata->getTypeOfField($propertyParts['field']);
    }