/** * @return $this * @throws SFM_Exception */ public function save() { $id = $this->mapper->saveEntity($this, $this->simpleValues); if ($this->isDummy()) { $this->setId($id); } //Entity should not be dirty any more $this->initialSimpleValues = $this->simpleValues; return $this; }