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']);
}