Problème relation ManyTOMany
Bonjour à tous !
J'ai un soucis avec ma relation ManyTOMany :
Citation:
Column named "id" referenced to .... doesnt exist
Voici mon entité Airline :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| abstract class Airline
{
/**
* @var integer $airline_id
*
* @ORM\Column(name="airline_id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $airline_id;
...
/**
* @ORM\ManyToMany(targetEntity="Tag")
* @ORM\JoinColumn(name="airline_tag_id", referencedColumnName="airline_id")
*/
protected $airline_tags;
} |
Et mon entité Tag :
Code:
1 2 3 4 5 6 7 8 9 10
| class Tag
{
/**
* @var integer $airline_tag_id
*
* @ORM\Column(name="airline_tag_id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $airline_tag_id; |
Si quelqu'un aurait une idée ?
Merci d'avance.