lithium\data\entity\Document::offsetSet()
Allows document fields to be assigned as array keys, i.e. $document['_id'] = $id.
Parameters
-
mixed
$offsetString or integer indicating the offset or the name of a field in an individual document.
-
mixed
$valueThe value to assign to the field.
Returns
voidSource
public function offsetSet($offset, $value) {
return $this->set([$offset => $value]);
}