title: Oracle/Doctrine get result from function where are inserts
body: <p>I need to use Oracle function by DBAL Doctrine 2.
  The problem is that in this function are insert into commands.
  By this I can't use select, not working also call. </p>
  
  <p>I can run it by</p>
  
  <pre><code>&lt;?php
  $sql = "
      declare
      res number := 0;
      begin 
      res := namespace.functionName(params);
      commit;
      end;";
      $stmt-&gt;prepare($sql);
      $stmt-&gt;execute();
  </code></pre>
  
  <p>Problem is that I can't display in doctrine res value. I can't get this function result.
  I know that there should be stored procedure with output param, but isn't. It's not mydb I can't change it and admin doesn't want to change it.</p>
  
  <p>Any idea how I can run such function and get result in DBAL Doctrine?</p>
  
  <p>Thanks for any hints.</p>