Extends
lithium\data\Entity
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
voidSource
public function offsetSet($offset, $value) {
return $this->set(array($offset => $value));
}