2 instances of ManyToMany for same entity in same class
===

I want to add  2 instances of same object with manyToMany relation.


    class A {

         /**

	 * @ORM\ManyToMany(targetEntity="RelatedEntity", inversedBy="teachers", cascade={"persist", "remove"})
	 * @ORM\JoinTable(name="table1",
     *      joinColumns={@ORM\JoinColumn(name="class_id", referencedColumnName="id")},
     *      inverseJoinColumns={@ORM\JoinColumn(name="related_id", referencedColumnName="id")}
     *      )
	 */
    protected $myFirstEntities;

        
         /**

	 * @ORM\ManyToMany(targetEntity="RelatedEntity", inversedBy="students", cascade={"persist", "remove"})
	 * @ORM\JoinTable(name="table2",
     *      joinColumns={@ORM\JoinColumn(name="class_id", referencedColumnName="id")},
     *      inverseJoinColumns={@ORM\JoinColumn(name="related_id", referencedColumnName="id")}
     *      )
	 */
    protected $mySecondEntities;
    }



    class RelatedEntity
    {
      /**
     *
     * @ORM\ManyToMany(targetEntity="A", mappedBy="myFirstEntities", cascade={"persist"})
     */
    protected $teachers;

      /**
     *
     * @ORM\ManyToMany(targetEntity="A", mappedBy="mySecondEntities", cascade={"persist"})
     */
    protected $students;

    }

When I use the 

            php app/console doctrine:generate:entities MyApp

the program generate **a unique method to add** entity named:

    public function addRelatedEntity(\MyApp\MyBundle\Entity\RelatedEntity $myFirstEntities)
    {
        $this->myFirstEntities[] = $myFirstEntities;
    }


So I can"t add mySecondEntities. How can I do. I have the possibility to add it in manual method but automatic method it is not possible? 

My question is can I use 2 manytomany relation of a specific class into  the same class? How can I do it?

Help please

