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

Unable use Query\Criterion to fetch ezobjectrelationlist field

    XMLWordPrintable

Details

    Description

      Actions made by Public API

      1. Create a new Class with a ezobjectrelationlist field
      2. Create a new Article
      3. Create an object using the new class a in the ezobjectrelationlist field relate the Article
      4. Try to search the new article using

      new Criterion\Field( 'ezobjectrelationlist_field', Criterion\Operator::EQ, 'New Article' )

      It returns

      class eZ\Publish\API\Repository\Values\Content\Search\SearchResult#987 (7) {
        public $facets =>
        array(0) {
        }
        public $searchHits =>
        array(0) {
        }
        public $spellSuggestion =>
        NULL
        public $time =>
        double(0.010175943374634)
        public $timedOut =>
        NULL
        public $maxScore =>
        NULL
        public $totalCount =>
        int(0)
      }
      

      When it should return the "New Article"

      Attachments

        Activity

          People

            Unassigned Unassigned
            pedro.resende-obsolete@ez.no Pedro Resende (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: