title: Symfony2/Doctrine2 One-To-Many same object twice
body: <p>My current Client-Entity has an unloading and a loading Area, which are both ClientArea-Entities.</p>
  
  <pre><code>namespace ACME\DemoBundle\Entity;
  
  use Doctrine\ORM\Mapping as ORM;
  use Sorien\DataGridBundle\Grid\Mapping as GRID;
  use Symfony\Component\Validator\Constraints as Assert;
  use Doctrine\Common\Collections\ArrayCollection;
  
  /**
   * ACME\DemoBundle\Entity\Client
   *
   * @ORM\Table()
   * @ORM\Entity(repositoryClass="ACME\DemoBundle\Entity\ClientRepository")
   */
  class Client
  {
      /**
       * @ORM\OneToMany(targetEntity="ClientArea",mappedBy="client", cascade={"persist", "remove"})
       */
      public $unloading_areas; 
  
      /**
       * @ORM\OneToMany(targetEntity="ClientArea",mappedBy="client", cascade={"persist", "remove"})
       */
      public $loading_areas; 
  }
  
  class ClientArea
  {
      /**
       * @ORM\ManyToOne(targetEntity="Client")
       */
      public  $client;
  }
  </code></pre>
  
  <p>This does not work because client can only map 1 association.
  How can i map the relation properly?</p>