Sorry.
I'm on Win, exporting to Symfony2 / Doctrine2 annotations.
Here's a screenshot of a simple test (It seems I can't send the ormdesigner2 using this interface, but I can send it by email)

Here's the generated code :
<?php
namespace Sedona\Main;
use Doctrine\ORM\Mapping AS ORM;
/**
* @ORM\Entity
*/
class SampleEntity
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $name;
/**
* @ORM\ManyToMany(targetEntity="OtherEntity", inversedBy="SampleEntities")
* @ORM\JoinTable(
* name="OtherEntityHasSampleEntity",
* joinColumns={@ORM\JoinColumn(name="sample_entity_id", referencedColumnName="id", nullable=false)},
* inverseJoinColumns={@ORM\JoinColumn(name="other_entity_id", referencedColumnName="id", nullable=false)}
* )
*/
private $OtherEntities;
}
and
<?php
namespace Sedona\Second;
use Doctrine\ORM\Mapping AS ORM;
/**
* @ORM\Entity
*/
class OtherEntity
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\ManyToMany(targetEntity="SampleEntity", mappedBy="OtherEntities")
*/
private $SampleEntities;
}
Problems :
- In the targetEntity and inversedBy annotations, the namespace should be added
- I don't see anywhere my "myassociationfield" placed in the ManyToMany association