public function set($fieldName, $value) { if (!isset($this->operators['$set'])) { $this->operators['$set'] = array(); } $this->operators['$set'][$fieldName] = Structure::prepareToStore($value); return $this; }