eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion::loadRoleDraftByRoleId PHP Method

loadRoleDraftByRoleId() public method

Loads a role draft by the original role ID.
public loadRoleDraftByRoleId ( mixed $roleId ) : array
$roleId mixed ID of the role the draft was created from.
return array
    public function loadRoleDraftByRoleId($roleId)
    {
        try {
            return $this->innerGateway->loadRoleDraftByRoleId($roleId);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }