Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
5.0, 5.1.0rc1
-
None
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)