public function prepareLookupForDb($values, ConnectionInterface $connection)
    {
        $preparedValues = [];
        if ($this->rhsValueIsIterable) {
            foreach ($values as $value) {
                $preparedValues[] = $this->lhs->getOutputField()->convertToDatabaseValue($value, $connection);
            }
        } else {
            $preparedValues[] = $this->lhs->getOutputField()->convertToDatabaseValue($values, $connection);
        }

        return $preparedValues;
    }