hola tengo un problema con el framework symfony 2 no me deja crear las relaciones manytomany cuando le doy doctrine:schema:create el freamework no me crea las tablas intermedias y ya no se que hacer T_T
Tabla Articulos
Código PHP:
/*
* @var ArrayCollection $categories
* @ORM\ManyToMany(targetEntity="Micra\BackendBundle\Entity\Seo",inversedBy="articles")
* @ORM\JoinTable(name="articles_seos",
* joinColumns={@ORM\JoinColumn(name="articles_id", referencedColumnName="id", onDelete="cascade")},
* inverseJoinColumns={@ORM\JoinColumn(name="seo_id", referencedColumnName="id", onDelete="cascade")})
*
*/
protected $seo;
/*
* @var ArrayCollection $categories
* @ORM\ManyToMany(targetEntity="Micra\BackendBundle\Entity\Categories", inversedBy="articles")
@ORM\JoinTable(name="articles_categories",
* joinColumns={@ORM\JoinColumn(name="articles_id", referencedColumnName="id", onDelete="cascade"))},
* inverseJoinColumns={@ORM\JoinColumn(name="categories_id", referencedColumnName="id", onDelete="cascade"))})
Tabla categorias
Código PHP:
/**
@var ArrayCollection $articles
* @ORM\ManyToMany(targetEntity="Micra\BackendBundle\Entity\Articles", mappedBy="categories")
*/
protected $articles;
Tabla Seo
Código PHP:
/**
* @var ArrayCollection $articles
* @ORM\ManyToMany(targetEntity="\Micra\BackendBundle\Entity\Articles", mappedBy="seo")
*
*/
protected $articles;
la verdad no se que hacer o que error tenga muy raro