I have three tables goods、category and brand, the category has many goods,the brand also has many goods.I have two cases below:
1、The relation between goods and category is "manyToOne",defined the relation between goods and brad is also "manyToOne"(It means you should define "manyToOne twice in the goods yml mapping");
2、Defined the relation between goods and category is "manyToOne",defined the relation between brand and category is "manyToMany".
The case one which I tried is not successful,because u cant't denfine "manyToOne" twice in one yml mapping;The case two I haven't try yet,I thought it's very redundant;
How can I find a mature solution,I'm trying to find some details on Sylius which is the open-source about the mall project. I have been puzzled in a few days.
Aucun commentaire:
Enregistrer un commentaire