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

updateObjectStatePriority() public method

Updates the object state priority to provided value.
public updateObjectStatePriority ( mixed $stateId, integer $priority )
$stateId mixed
$priority integer
    public function updateObjectStatePriority($stateId, $priority)
    {
        try {
            return $this->innerGateway->updateObjectStatePriority($stateId, $priority);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }