eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway::updateObjectStateLinks PHP Метод

    public abstract function updateObjectStateLinks($oldStateId, $newStateId);

Usage Example

 /**
  * Update object state links from $oldStateId to $newStateId.
  *
  * @param int $oldStateId
  * @param int $newStateId
  */
 public function updateObjectStateLinks($oldStateId, $newStateId)
 {
     try {
         return $this->innerGateway->updateObjectStateLinks($oldStateId, $newStateId);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway::updateObjectStateLinks