title: symfony with Doctrine whith Stored Procedures
body: <p>I have a procedure under SQL Server.</p>
  <pre><code>ALTER PROCEDURE [dbo].[TEST]
  -- Variables d'entrée
  @p_ENL_I_ID                 int,
  -- Variables de retour
  @p_RETURN_STATUS            int output
  AS
  BEGIN
  if @p_ENL_I_ID &gt;5   
  begin
      SET @p_RETURN_STATUS= 6
  end
  else
  begin
      SET @p_RETURN_STATUS=2
  end
  END
  </code></pre>
  <p>and my code for call this procédure :</p>
  <pre><code>$query = &quot;{CALL TEST(:p_ENL_I_ID,  :p_RETURN_STATUS) }&quot;;
  $rsm = new ResultSetMapping;
  $nativeQuery = $this-&gt;entityManager-&gt;createNativeQuery($query, $rsm);
  $nativeQuery-&gt;setParameters(array('p_ENL_I_ID'=&gt; 8 ,'p_RETURN_STATUS' =&gt; '' ));
  $result= $nativeQuery-&gt;getResult();
  </code></pre>
  <p>The procedure works, but I have an error: exception occurred in the driver: SQLSTATE[IMSSP]: The active result for the query contains no fields</p>
  <p>How to retrieve return variable <code>@p_RETURN_STATUS</code>?</p>