title: Problems with $this->getRoute()->getObject() losing it's context.
body: <p>Please see my question in the template section below: </p>
  
  <p>Form (showSuccess): </p>
  
  <pre><code>&lt;?php echo form_tag('job/salarySubmit') ?&gt;
  &lt;input type="hidden" name="job_id" value="&lt;?php echo $job-&gt;getId(); ?&gt;"&gt;
  &lt;input type="submit" value="View Salary"&gt;
  &lt;/form&gt; 
  </code></pre>
  
  <p>Action:</p>
  
  <pre><code>public function executeSalarySubmit(sfWebRequest $request)
  {
      $this-&gt;forward404Unless($request-&gt;isMethod('post'));
      $param = array('job_id' =&gt; $request-&gt;getParameter('job_id'), ); 
      $this-&gt;redirect('job/salary?'.http_build_query($param)); 
  }
  
  public function executeSalary(sfWebRequest $request)
  {
      $this-&gt;object_id = $request-&gt;getParameter('job_id');
      $this-&gt;salary = $this-&gt;getRoute()-&gt;getObject();          
  }
  </code></pre>
  
  <p>Template (salarySuccess.php):</p>
  
  <pre><code>&lt;?php echo $object_id; ?&gt;  // returns correct job_id: 6100, but when I try to access the object's other getters (example: echo $object_id-&gt;getName(), I get "Fatal error: Call to a member function getName() on a non-object"
  &lt;?php echo $salary-&gt;getName(); ?&gt; //works, but it gets the wrong name. It's returning the  first job in my DB with an ID of "1" which is not correct... it needs to be 6100
  </code></pre>
  
  <p>Routing:</p>
  
  <pre><code>job_salary:
    url:      /job/salary/:job_id
    param:    { module: job, action: salary }
    class:   sfDoctrineRoute
    options: { model: Job, type: object }
    requirements:
      id: \d+
      sf_method: [GET]    
  </code></pre>