eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway::deleteObjectState PHP Method

deleteObjectState() abstract public method

Deletes object state identified by $stateId.
abstract public deleteObjectState ( integer $stateId )
$stateId integer
    public abstract function deleteObjectState($stateId);

Usage Example

 /**
  * Deletes object state identified by $stateId.
  *
  * @param int $stateId
  */
 public function deleteObjectState($stateId)
 {
     try {
         return $this->innerGateway->deleteObjectState($stateId);
     } 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::deleteObjectState