{"action":"opened","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4164","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4164/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4164/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4164/events","html_url":"https://github.com/orientechnologies/orientdb/issues/4164","id":76849665,"number":4164,"title":"Functions variable \"orient\" is OScriptOrientWrapper not OScriptGraphOrientWrapper","user":{"login":"kstock","id":1614302,"avatar_url":"https://avatars.githubusercontent.com/u/1614302?v=3","gravatar_id":"","url":"https://api.github.com/users/kstock","html_url":"https://github.com/kstock","followers_url":"https://api.github.com/users/kstock/followers","following_url":"https://api.github.com/users/kstock/following{/other_user}","gists_url":"https://api.github.com/users/kstock/gists{/gist_id}","starred_url":"https://api.github.com/users/kstock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kstock/subscriptions","organizations_url":"https://api.github.com/users/kstock/orgs","repos_url":"https://api.github.com/users/kstock/repos","events_url":"https://api.github.com/users/kstock/events{/privacy}","received_events_url":"https://api.github.com/users/kstock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-15T20:33:23Z","updated_at":"2015-05-15T20:33:23Z","closed_at":null,"body":"This error was discovered in 2.0.9, it did not exist in 2.0.8\r\n\r\nHow to reproduce:\r\n\r\n1) create a groovy function in studio in 2.0.9\r\n    `return orient.getGraph()`\r\n2)  try to execute it, you will get the error:\r\n\r\nErroronparsingscriptatposition#0: ErroronexecutionofthescriptScript: fdsf------^org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: Nosignatureofmethod: com.orientechnologies.orient.core.command.script.OScriptOrientWrapper.getGraph()isapplicableforargumenttypes: ()values: [\r\n    \r\n]Possiblesolutions: getClass(),\r\ngetAt(java.lang.String),\r\ngrep()groovy.lang.MissingMethodException: Nosignatureofmethod: com.orientechnologies.orient.core.command.script.OScriptOrientWrapper.getGraph()isapplicableforargumenttypes: ()values: [\r\n    \r\n]Possiblesolutions: getClass(),\r\ngetAt(java.lang.String),\r\ngrep()Nosignatureofmethod: com.orientechnologies.orient.core.command.script.OScriptOrientWrapper.getGraph()isapplicableforargumenttypes: ()values: [\r\n    \r\n]Possiblesolutions: getClass(),\r\ngetAt(java.lang.String),\r\ngrep()\r\n\r\n\r\nthe same function will work in 2.0.8, the expected behavior is being able to access the graph as explained in the docs\r\n```orient.getGraph(), returns the current transactional graph database instance```\r\n\r\nRunning\r\n```return orient.class```\r\nshowed that in 2.0.9 orient has the class OScriptOrientWrapper , while in 2.0.8 it is OScriptGraphOrientWrapper. \r\n\r\n"}}