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

Unable use Query\Criterion to fetch ezobjectrelationlist field

    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"

        Issue Links

          Activity

          Pedro Resende (Inactive) created issue -
          Pedro Resende (Inactive) made changes -
          Field Original Value New Value
          Status Open [ 1 ] Confirmed [ 10037 ]
          Pedro Resende (Inactive) made changes -
          Link This issue discovered while testing EZP-22308 [ EZP-22308 ]
          Pedro Resende (Inactive) made changes -
          Link This issue discovered while testing EZP-22308 [ EZP-22308 ]
          Pedro Resende (Inactive) made changes -
          Link This issue blocks EZP-22308 [ EZP-22308 ]
          Pedro Resende (Inactive) made changes -
          Link This issue blocks EZP-22308 [ EZP-22308 ]
          Pedro Resende (Inactive) made changes -
          Link This issue discovered while testing EZP-22308 [ EZP-22308 ]
          André Rømcke made changes -
          Workflow eZ Engineering Scrumban Workflow [ 63294 ] EZ* Development Workflow [ 70167 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 70167 ] EZEE Development Workflow [ 108483 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          14s 1 pedro.resende@ez.no 19/May/14 5:11 PM

            People

            • Assignee:
              Unassigned
              Reporter:
              Pedro Resende (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: