/** * Saves the given entity, persisting it's state. * * @param object $object */ public function save($object) { $this->_errorIfClosed(); $this->_unitOfWork->save($object); if ($this->_flushMode == self::FLUSHMODE_IMMEDIATE) { $this->flush(); } }