public function contains($propertyName, $operand)
    {
        if (!$this->classSchema->isMultiValuedProperty($propertyName)) {
            throw new InvalidQueryException('Property "' . $propertyName . '" must be multi-valued', 1276781026);
        }
        return $this->qomFactory->comparison(
            $this->qomFactory->propertyValue($propertyName, '_entity'),
            QueryInterface::OPERATOR_CONTAINS,
            $operand
        );
    }
public function contains($propertyName, $operand)
    {
        if (!$this->classSchema->isMultiValuedProperty($propertyName)) {
            throw new InvalidQueryException('Property "' . $propertyName . '" must be multi-valued', 1276781026);
        }
        return $this->qomFactory->comparison(
            $this->qomFactory->propertyValue($propertyName, '_entity'),
            QueryInterface::OPERATOR_CONTAINS,
            $operand
        );
    }
public function contains ( $ propertyName , $ operand ) { if ( ! $ this -> classSchema -> isMultiValuedProperty ( $ propertyName ) ) { throw new InvalidQueryException ( 'Property "' . $ propertyName . '" must be multi-valued' , 1276781026 ) ; } return $ this -> qomFactory -> comparison ( $ this -> qomFactory -> propertyValue ( $ propertyName , '_entity' ) , QueryInterface :: OPERATOR_CONTAINS , $ operand ) ; }
Returns a "contains" criterion used for matching objects against a query.
It matches if the multivalued property contains the given operand.

If NULL is given as $operand, there will never be a match!

@param string $propertyName The name of the multivalued property to compare against
@param mixed $operand The value to compare with
@return Qom\Comparison
@throws InvalidQueryException if used on a single-valued property
@api
Returns a contains criterion used for matching objects against a query . It matches if the multivalued property contains the given operand .