title: How to associate multiple Doctrine objects in a foreach loop before flushing the entity manager
body: <p>i need your help for persist data, i explain :
  i have entity Player with variable refer Team :</p>
  
  <pre><code>class DataPlayer
  {
      /**
       * @ORM\ManyToOne(targetEntity="Team")
       * @ORM\JoinColumn(name="tag_team", referencedColumnName="tag_team")
       */
      private $team;
      ...
  }
  </code></pre>
  
  <p>but when i include the data, i have only tag of team, not entity team...
  because the team is not probably present in database (i include team after).
  how can i do to set team with string (the tag directly) whitout to change Entity player </p>
  
  <p>thank!</p>