title: how can i create an update function with out using form in symfony 5
body: <p>i want to update for exemple contact entity without using form
  and i don't know how
  this is my code :</p>
  <pre><code>/** 
   * @Route(&quot;/UpdateContact/{id}&quot;,name=&quot;editcontact&quot;)
   */
  public function EditContact(Contact $Contact , Request $request ,ManagerRegistry $manager)
  {
  
      $contact = $this-&gt;getDoctrine()
          -&gt;getRepository(Contact::class)
          -&gt;findAll();
  
      $request-&gt;get('responsable');
      $request-&gt;get('telephone');
      $request-&gt;get('email');
      $request-&gt;get('note');
       
      $contact-&gt;setResponsable($request-&gt;request-&gt;get('responsable'))
              -&gt;setTelephone ($request-&gt;request-&gt;get('telephone'))
              -&gt;setEmail ($request-&gt;request-&gt;get('email'))
              -&gt;setNote ($request-&gt;request-&gt;get('note'));
              $manager-&gt;persist($contact);
              $manager-&gt;flush();
      return $this-&gt;render('companyProfile.html.twig', [
          // 'contactform'=&gt;$contactform-&gt;createView(),
          'Contact' =&gt; $contact,
       ]);
    }
  </code></pre>
  <p>it dosen't work so if anyone know how to update without a form , plz help me i'm stuck right now</p>