public function offsetSet($field, $value)
    {
        $state = $this->getState();
        if ($state == self::STATE_DELETED) {
            throw new Exception\LogicException(__METHOD__ . ": Logic exception, cannot operate on record that was deleted");
        }


        $this->_securedFieldForArrayAccess['data'][$field] = $value;
        if ($state != self::STATE_NEW) {
            $this->setState(self::STATE_DIRTY);
        }
        return $this;
    }
public function offsetSet($field, $value)
    {
        $state = $this->getState();
        if ($state == self::STATE_DELETED) {
            throw new Exception\LogicException(__METHOD__ . ": Logic exception, cannot operate on record that was deleted");
        }


        $this->_securedFieldForArrayAccess['data'][$field] = $value;
        if ($state != self::STATE_NEW) {
            $this->setState(self::STATE_DIRTY);
        }
        return $this;
    }
public function offsetSet ( $ field , $ value ) { $ state = $ this -> getState ( ) ; if ( $ state == self :: STATE_DELETED ) { throw new Exception \ LogicException ( __METHOD__ . ": Logic exception, cannot operate on record that was deleted" ) ; } $ this -> _securedFieldForArrayAccess [ 'data' ] [ $ field ] = $ value ; if ( $ state != self :: STATE_NEW ) { $ this -> setState ( self :: STATE_DIRTY ) ; } return $ this ; }
Set a field
@param string $field
@param mixed $value
@throws Exception\LogicException when the record has been deleted
@return Record
Set a field