/** * Replaces an existing object with the same identifier by the given object * * @param object $modifiedObject The modified object * @throws Exception\UnknownObjectException * @throws Exception\IllegalObjectTypeException * @return void * @api */ public function update($modifiedObject) { if (!$modifiedObject instanceof $this->objectType) { throw new \TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException('The modified object given to update() was not of the type (' . $this->objectType . ') this repository manages.', 1249479625); } $this->persistenceManager->update($modifiedObject); }