Removes a value from the [person_image_versions] array column value.
@param      mixed $value

@return   \Team\Model\PersonVersion The current object (for fluent API support)
163460
public function removePersonImageVersion($value)
    {
        $targetArray = array();
        foreach ($this->getPersonImageVersions() as $element) {
            if ($element != $value) {
                $targetArray []= $element;
            }
        }
        $this->setPersonImageVersions($targetArray);

        return $this;
    }
898388
public function remove($value) {
        $oldCollection = $this->getArrayCopy();
        if (!in_array($value, $oldCollection))
            return $this;

        $newCollection = array();
        foreach ($oldCollection as $val) {
            if ($val === $value)
                continue;

            $newCollection[] = $val;
        }
        $this->exchangeArray($newCollection);
        return $this;
    }
656794
public function removeDealerShedulesVersion($value)
    {
        $targetArray = array();
        foreach ($this->getDealerShedulesVersions() as $element) {
            if ($element != $value) {
                $targetArray []= $element;
            }
        }
        $this->setDealerShedulesVersions($targetArray);

        return $this;
    }
855095
public function removePersonTeamLinkId($value)
    {
        $targetArray = array();
        foreach ($this->getPersonTeamLinkIds() as $element) {
            if ($element != $value) {
                $targetArray []= $element;
            }
        }
        $this->setPersonTeamLinkIds($targetArray);

        return $this;
    }
1097910
public function remove($value)
    {
        if ($this->hasNot($value)) {
            return;
        }

        $item = $this->get($value);

        $this->unset($value);

        return $item;
    }
372050
public static function humanToPlain($value)
    {
        if (is_array($value)) {
            return $value;
        }
        $value = preg_replace_callback('~(".*?")|(\'.*?\')|(\s*,\s*)~s', function ($m) {
            if (!empty($m[3])) {
                return "\x00";
            }
            if (!empty($m[2])) {
                return substr($m[2], 1, -1);
            }
            if (!empty($m[1])) {
                return substr($m[1], 1, -1);
            }
            return null;
        }, $value);
        return explode("\x00", $value);
    }
1289829
public function forgetValue($name, $value)
    {
        if ($this->has($name)) {
            $attr = $this->getAttr($name);

            $attr->forgetValue($value);
        }

        return $this;
    }
254385
protected function sanitizeToArrayValue($value)
    {
        if ($value instanceof Message) {
            return (new self($value))->toArray();
        }

        if ($value instanceof RepeatedField) {
            $values = [];
            foreach ($value as $k => $v) {
                $values[] = $this->sanitizeToArrayValue($v);
            }

            return $values;
        }

        if ($value instanceof self) {
            return $value->toArray();
        }

        return $value;
    }
567780
public function getReverseTransformedValue($value)
    {
        if (!is_array($value)) {
            throw new TransformationFailedException(sprintf('Expected a array got %s', gettype($value)));
        }

        if ($value['remove']) {
            return $this->fieldType->getEmptyValue();
        }

        /* in case file is not modified, overwrite settings only */
        if (null === $value['file']) {
            return clone $this->initialValue;
        }

        $properties = [
            'inputUri' => $value['file']->getRealPath(),
            'fileName' => $value['file']->getClientOriginalName(),
            'fileSize' => $value['file']->getClientSize(),
        ];

        return new $this->valueClass($properties);
    }
573735
public function setCorePhpthumbNohotlinkEraseImage($value)
    {
        $this->setFieldName('phpthumb_nohotlink_erase_image');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
694070
public function addDealerContentVersion($value)
    {
        $currentArray = $this->getDealerContentVersions();
        $currentArray []= $value;
        $this->setDealerContentVersions($currentArray);

        return $this;
    }
974022
public function removeDealerBrandVersion($value)
    {
        $targetArray = array();
        foreach ($this->getDealerBrandVersions() as $element) {
            if ($element != $value) {
                $targetArray []= $element;
            }
        }
        $this->setDealerBrandVersions($targetArray);

        return $this;
    }
244579
public function removePrefixedKeyValues($value)
    {
        if (($pos = strrpos($value, '_')) !== false) {
            return substr($value, ($pos + 1));
        }

        return $value;
    }
385872
public function unwrapValue($value)
    {
        if (is_array($value)) {
            $self = $this;
            return array_map(function ($item) use ($self) {
                if ($item instanceof Context) {
                    return $item->unwrap();
                } else {
                    return $self->unwrapValue($item);
                }
            }, $value);
        } else {
            return $value;
        }
    }
859502
protected function cleanUpValue( $value ) {
		$cleanValue = [];
		if ( !is_array( $value ) ) {
			return $cleanValue;
		}
		foreach ( $value as $singleValue ) {
			$singleValue = parent::cleanUpValue( $singleValue );
			// Remove options that we don't have here
			if ( !isset( $this->fields[ $singleValue ] ) ) {
				continue;
			}
			$cleanValue[] = $singleValue;
		}
		return $cleanValue;
	}
314451
protected function cleanValue($value)
	{
		if (is_array($value)) {
			return array_map(function ($v) {
				return $this->cleanValue($v);
			}, $value);
		} else {
			return stripslashes($value);
		}
	}
1137091
public function deselectByValue($value)
	{
		foreach ( $this->getOptionsByValue($value) as $option ) {
			$option->deselect();
		}

		return $this;
	}