mlwacosmos
mlwacosmos

Reputation: 4541

generate entities from database : table missing

I would like to use the symfony command line :

app/console doctrine:mapping:import --force MyBUNDLE xml

Doing this, everything is generated but one table "hasrole" that is a junction between two tables User and Role.

What is happening ? Do I miss something ?

Note : I used to work with Symfony 2.3 (this table was generated) now I work with Symfony 2.7. Something's changed ?

Upvotes: 1

Views: 249

Answers (1)

DonCallisto
DonCallisto

Reputation: 29912

If is just a conjunction table without other columns but only ids, it will be mapped with a ManyToMany between two entities involved (User and Role). Please check them out.

Upvotes: 1

Related Questions