title: How I can pass an id from one controller to another by redirectToRoute in symfony 3.4?
body: <p>I want to transfer a father id from the Father controller to the mother controller in Symfony by:</p>
  
  <pre><code>return $this-&gt;redirectToRoute('mother_new', array('id' =&gt; $father-&gt;getId())); 
  </code></pre>
  
  <p>and I will use father id in mother Controller as:</p>
  
  <pre><code>public function motherAction(Request $request,Father $father)
  </code></pre>
  
  <p>but this returns the following error:</p>
  
  <p>'Unable to guess how to get a Doctrine instance from the request information for parameter "father". the relation between father and mother is oneToMany. </p>
  
  <p>Please, any one who can help me?</p>