Neos\Flow\Persistence\Generic\Query::contains PHP Method

contains() public method

It matches if the multivalued property contains the given operand. If NULL is given as $operand, there will never be a match!
public contains ( string $propertyName, mixed $operand ) : Comparison
$propertyName string The name of the multivalued property to compare against
$operand mixed The value to compare with
return Neos\Flow\Persistence\Generic\Qom\Comparison
    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);
    }