title: How does persist work in Symfony?
body: <p>I am new to Symfony, and I could not find an answer on the official site.
  Can I use one variable to persist more then once ? 
  For example:</p>
  
  <pre><code>for ($i = 0; $i &lt; count($allArea); $i++) {
               $area = new Area();
               $area-&gt;setValue($i);
               $em-&gt;persist($area);
  }
  $em-&gt;flush();
  </code></pre>