Neos\Flow\Persistence\PersistenceManagerInterface::update PHP Method

update() public method

Update an object in the persistence.
public update ( object $object ) : void
$object object The modified object
return void
    public function update($object);

Usage Example

 /**
  * Schedules a modified object for persistence.
  *
  * @param object $object The modified object
  * @return void
  * @throws IllegalObjectTypeException
  * @api
  */
 public function update($object)
 {
     if (!$object instanceof $this->objectType) {
         throw new IllegalObjectTypeException('The modified object given to update() was not of the type (' . $this->objectType . ') this repository manages.', 1249479625);
     }
     $this->persistenceManager->update($object);
 }
All Usage Examples Of Neos\Flow\Persistence\PersistenceManagerInterface::update