public function createWhereExpression(FieldDescriptorInterface $fieldDescriptor, $value, $comparator) { if (!$fieldDescriptor instanceof DoctrineFieldDescriptorInterface) { throw new InvalidExpressionArgumentException('where', 'fieldDescriptor'); } return new DoctrineWhereExpression($fieldDescriptor, $value, $comparator); }