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

Searching with API using a Field criterion leads to a fatal error

    XMLWordPrintable

Details

    Description

      When trying to search for content based on the Field criterion, I get the following exception:

      PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column '' in 'where clause'
      

      The code used is the following:

      $criteria = array(
          new ContentTypeIdentifier( 'test' ),
          new Field( 'title', '=', 'foo' )
      );
      $query = new Query(
          array(
               'criterion' => new Query\Criterion\LogicalAnd( $criteria )
          )
      );
      $result = $this->getRepository()->getSearchService()->findContent( $query ) );
      

      In eZDemo, searching against title fields will match an ezinisetting field type, which uses the Null converter (not indexable of course)

      Attachments

        Activity

          People

            Unassigned Unassigned
            jerome.vieilledent-obsolete@ez.no Jérôme Vieilledent (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 30 minutes
                6h 30m