lib/eMapper/Fluent/Query/FluentInsert.php
public function valuesArray($values) {
		if ($values instanceof \ArrayObject)
			$this->value = $values->getArrayCopy();
		elseif (is_object($values))
			$this->value = get_object_vars($values);
		elseif (is_array($values))
			$this->value = $values;
		else
			throw new \InvalidArgumentException("Method 'valuesArray' expected an object or array value");
		
		if (is_numeric(key($this->value))) {
			$this->valueList = $this->value;
			$this->value = null;
		}
		
		return $this;
	}
public function valuesArray($values) {
		if ($values instanceof \ArrayObject)
			$this->value = $values->getArrayCopy();
		elseif (is_object($values))
			$this->value = get_object_vars($values);
		elseif (is_array($values))
			$this->value = $values;
		else
			throw new \InvalidArgumentException("Method 'valuesArray' expected an object or array value");
		
		if (is_numeric(key($this->value))) {
			$this->valueList = $this->value;
			$this->value = null;
		}
		
		return $this;
	}
public function valuesArray ( $ values ) { if ( $ values instanceof \ ArrayObject ) $ this -> value = $ values -> getArrayCopy ( ) ; elseif ( is_object ( $ values ) ) $ this -> value = get_object_vars ( $ values ) ; elseif ( is_array ( $ values ) ) $ this -> value = $ values ; else throw new \ InvalidArgumentException ( "Method 'valuesArray' expected an object or array value" ) ; if ( is_numeric ( key ( $ this -> value ) ) ) { $ this -> valueList = $ this -> value ; $ this -> value = null ; } return $ this ; }
Sets the value to insert as an associative array
@param mixed $values
@throws \InvalidArgumentException
@return \eMapper\Fluent\Query\FluentInsert
Sets the value to insert as an associative array