/** * Removes an object from this repository. * * @param object $object The object to remove * @throws Exception\IllegalObjectTypeException * @return void * @api */ public function remove($object) { if (!$object instanceof $this->objectType) { throw new \TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException('The object given to remove() was not of the type (' . $this->objectType . ') this repository manages.', 1248363336); } $this->persistenceManager->remove($object); }