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

deleteObjectState() public method

Deletes object state identified by $stateId.
public deleteObjectState ( integer $stateId )
$stateId integer
    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);
        }
    }