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