Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-24785

Legacy CriterionHandler FieldValue handler should handle DateTime

    Details

      Description

      Currently handling DateTime objects is not consistent across search handlers and FieldValue's.

      Solr will accept DateTime and convert it, Legacy does not and throws an exception trying to convert DateTime to a string.

      This will work with solr but using legacy search it will not.

      new Criterion\Field(
      'from_time',
      Criterion\Operator::GTE,
      new \DateTime()
      )

        Activity

        Hide
        Io Sol Inf added a comment -

        Hi.

        has there been any progress regarding this issue?
        I need to fetch objects with a datetime field set for the future and I am running into an ``Error: Object of class DateTime could not be converted to string``error.

        Show
        Io Sol Inf added a comment - Hi. has there been any progress regarding this issue? I need to fetch objects with a datetime field set for the future and I am running into an ``Error: Object of class DateTime could not be converted to string``error.

          People

          • Assignee:
            Unassigned
            Reporter:
            Douglas Hammond
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: