title: Symfony 2 Doctrine 2 using inversedBy and mappedBy into ManyToMany Relationship?
body: <p>into <a href="http://docs.doctrine-project.org/en/2.0.x/reference/association-mapping.html#owning-side-and-inverse-side" rel="nofollow">Doctrine 2 Documentation</a> explain Owning Side and Inverse Side into  ManyToMany Relationship and said that : </p>
  
  <blockquote>
    <p>For ManyToMany bidirectional relationships either side may be the
    owning side (the side that defines the @JoinTable and/or does not make
    use of the mappedBy attribute, thus using a default join table).</p>
  </blockquote>
  
  <p>Is That mean I can write my annotation without using inversedBy and mappedBy 
  To refer for Owning Side of ManyToMany Relationship and Inverse Side of ManyToMany Relationship ?   </p>
  
  <p>Ex: </p>
  
  <p>can i write that :</p>
  
  <p><strong>Affiliate Entity</strong></p>
  
  <pre><code>   /**
       * @var \Doctrine\Common\Collections\Collection
       *
       * @ORM\ManyToMany(targetEntity="Category")
       *      
       */        
      private $categories;
  </code></pre>
  
  <p>and</p>
  
  <p><strong>Category Entity</strong></p>
  
  <pre><code>/**
   * @var \Doctrine\Common\Collections\Collection
   *
   * @ORM\ManyToMany(targetEntity="Affiliate")
   * @ORM\JoinTable(name="category_affiliate")
   *      
   */
  private $afflitiates;
  </code></pre>
  
  <p>instead of write that:</p>
  
  <p><strong>Affiliate Entity</strong> </p>
  
  <pre><code>   /**
       * @var \Doctrine\Common\Collections\Collection
       *
       * @ORM\ManyToMany(targetEntity="Category", mappedBy="afflitiates")
       *      
       */        
      private $categories;
  </code></pre>
  
  <p>and</p>
  
  <p><strong>Category Entity</strong></p>
  
  <pre><code>/**
   * @var \Doctrine\Common\Collections\Collection
   *
   * @ORM\ManyToMany(targetEntity="Affiliate",inversedBy="categories")
   * @ORM\JoinTable(name="category_affiliate")
   *      
   */
  private $afflitiates;
  </code></pre>