public function set($fieldName, $value)
    {
        parent::set($fieldName, $value);

        // if document saved - save through update
        if ($this->getId()) {
            $this->operator->set($fieldName, $value);
        }

        return $this;
    }
public function set($fieldName, $value)
    {
        parent::set($fieldName, $value);

        // if document saved - save through update
        if ($this->getId()) {
            $this->operator->set($fieldName, $value);
        }

        return $this;
    }
public function set ( $ fieldName , $ value ) { parent :: set ( $ fieldName , $ value ) ; // if document saved - save through update if ( $ this -> getId ( ) ) { $ this -> operator -> set ( $ fieldName , $ value ) ; } return $ this ; }
Update value in local cache and in DB

@param string $fieldName point-delimited field name*
@param mixed $value value to store

@return Document

@throws Exception
Update value in local cache and in DB