lithium\data\entity\Document::offsetSet()

public method

Allows document fields to be assigned as array keys, i.e. $document['_id'] = $id.

Parameters

  • mixed $offset

    String or integer indicating the offset or the name of a field in an individual document.

  • mixed $value

    The value to assign to the field.

Returns

void

Source

	public function offsetSet($offset, $value) {
		return $this->set([$offset => $value]);
	}